AMP 可以对视频事件使用 Google 标签管理器

AMP Possible to use Google Tag Manager for Video Events

是否可以为 google 标签管理器使用视频 (brightcove) 触发器?

我应该在 Google 跟踪代码管理器上配置什么才能在 Google 分析(包括自动播放)上发送视频播放事件。在 Google 标签管理器上,我找不到任何视频触发器。我是否应该将没有 Google 跟踪代码管理器的事件直接发送到带有请求的 Google Analytics?

<amp-brightcove
                  data-account="906043040001"
                  data-video-id="1401169490001"
                  data-player-id="180a5658-8be8-4f33-8eba-d562ab41b40c"
                  layout="responsive" width="480" height="270">
</amp-brightcove>

amp 视频分析页面:https://github.com/ampproject/amphtml/blob/master/extensions/amp-analytics/amp-video-analytics.md

amp-brightcove: https://ampbyexample.com/playground/#url=https%3A%2F%2Fampbyexample.com%2Fcomponents%2Famp-brightcove%2Fsource%2F

不,在 AMP GTM 中,您仅限于某些触发事件。除非你可以使用点击触发器。

有一个 Brightcove 示例页面。 http://solutions.brightcove.com/bclifford/ampexamples/analytics.html

<amp-brightcove
  id="myPlayer"
  data-account="myAccountId"
  data-player-id="myPlayerId"
  data-embed="default"
  ...
>

<amp-analytics>
  <script type="application/json">
    {
      "requests": {
        "base": "https:/www.something.com/?",
        "pageview": {
          "baseUrl": "${base}type=pageview"
        },
        "event": {
          "baseUrl": "${base}type=event&name=${eventName}"
        }
      },
      "triggers": {
        "trackPageview": {
          "on": "visible",
          "request": "pageview"
        },
        "myVideoPlay": {
          "on": "video-play",
          "request": "event",
          "selector": "#myPlayer",
          "vars": {
            "eventName": "play"
          }
        },
        "myVideoEnded": {
          "on": "video-ended",
          "request": "event",
          "selector": "#myPlayer",
          "vars": {
            "eventName": "end"
          }
        },
        "myVideoSession": {
          "on": "video-session",
          "request": "event",
          "selector": "#myPlayer",
          "vars": {
            "eventName": "session"
          }
        }
      }
    }
  </script>
</amp-analytics>