【问题标题】:Implementing Event Tracking with GTM使用 GTM 实现事件跟踪
【发布时间】:2015-02-03 09:46:26
【问题描述】:

我已使用默认设置将 Universal Analytics 添加到 Google 跟踪代码管理器中。目前我在用户注册页面中有以下代码:

_gaq.push(['_trackEvent', 'Account Events', 'Create Account', 'Create new account ']);

如何将其转换为 'DataLayer.push' ? GTM 端是否需要进行任何配置更改?请告诉我。

谢谢。

【问题讨论】:

    标签: google-analytics google-tag-manager


    【解决方案1】:

    您可以在成功提交帐户创建表单时执行以下操作:

    dataLayer.push({
       'event': 'account created',
       'cat': 'Account Events',
       'act': 'Create Account',
       'lab': 'Create new account'
    })
    

    然后在 GTM 中,您需要使用类别、操作和标签的相应宏创建事件标记。

    事件标签将根据此规则触发:

    {{event}} equals "account created"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-01
      • 1970-01-01
      • 2015-10-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多