|
Post by account_disabled on Jan 30, 2024 0:48:03 GMT -5
现在您已经熟悉了标记、触发器和变量,让我们看一下前面的一些示例,并探讨如何在 Google 跟踪代码管理器中设置标记。 我们将从 Google Analytics 页面浏览量标签(GA – 页面浏览量)开始。当你点击它时,它看起来像这样: 名为 ga 的示例 Google 标签管理器标签配置 - 页面视图,标签类型设置为 google 分析:通用分析,跟踪类型为页面视图,Google 分析设置为 {{gas - mm.io demo}},触发触发器设置为所有页面 这个标签非常简单。它告诉跟踪代码管理器,当有人登陆您网站上的某个页面(所有页面触发器)时,告诉 Google Analytics(标记类型)已发生页面浏览(跟踪类型)。标识 Google Analytics(分析)帐号的变量是 {{GAS – MM.io Demo}}。 您可以对 Facebook PageView 像素执行相同的操作。 只需从 Facebook 获取像素代码并将其复制到标签中即可。请注意,触发器 电话数据 是相同的 - 所有页面。因此,每当有人登陆您网站上的页面时,Facebook 和 Google Analytics 都会知道,因为 Google 标签管理器告诉了他们。两个平台同时获得相同的信息,因此它们更有可能达成一致。 示例 google 标签管理器标签配置称为 fb pageview,标签类型设置为自定义 html,并带有一些 html 代码,触发触发器设置为所有页面 接下来,我们将了解一个称为滚动报告的 Google Analytics 事件。下面的代码设置是为了告诉 Google 跟踪代码管理器在有人向下滚动您网站上的任何页面时进行报告。您可以将触发器设置为:“当有人向下滚动我的某个页面的 10%、25%、50%、75% 或 90% 时,请告诉 Google Analytics 有关该滚动的一些信息。” 此触发器告诉他们正在浏览哪个页面以及向下滚动了多远。 名为 ga - 事件 - 滚动报告的示例 Google 标签管理器标签配置,标签类型设置为 google Analytics:通用分析,跟踪类型为事件。 类别为滚动报告,操作为页面非交互点击为 true,Google 分析设置为 {{gas - mm.io demo}},触发触发器设置为滚动深度 现在您已经了解了可以使用 Google 跟踪代码管理器执行的一些很酷的操作,接下来让我们看看您可以使用的不同类型的代码。首先单击标签列表右上角的新建。 示例 Google 标签管理器仪表板工作区,其中选择了标签,并显示了几个示例标签,并在右上角突出显示了新按钮 在下一个屏幕上,单击顶部的“标签配置”框。 新的谷歌标签管理器标签,突出显示标签配置框 在屏幕右侧,您可以看到可供选择的不同类型的标签。例如,如果您使用 Google Optimize 或 Google Ads,您将看到这些平台的标签。 新的谷歌标签管理器标签,带有选择标签类型菜单选项,具有多种功能,包括谷歌分析:通用分析、谷歌分析:应用程序+网络配置、谷歌广告再营销等
|
|