我正在阅读有关网络分析的文章,偶然发现了GTM和GA。
GA似乎是谷歌提供的一项服务,用于生成网站流量的报告和统计。根据我有限的理解,为了生成这些报告,我们需要在我们的一端执行某种类型的标记。
看起来在GTM中我们也需要在我们的网站上添加一些标签。
那么,如果GA和GTM都与标记有关,它们之间的区别是什么,为什么我们有两个不同的产物谷歌。
我正在阅读有关网络分析的文章,偶然发现了GTM和GA。
GA似乎是谷歌提供的一项服务,用于生成网站流量的报告和统计。根据我有限的理解,为了生成这些报告,我们需要在我们的一端执行某种类型的标记。
看起来在GTM中我们也需要在我们的网站上添加一些标签。
那么,如果GA和GTM都与标记有关,它们之间的区别是什么,为什么我们有两个不同的产物谷歌。
当前回答
GTM更通用,可以用于其他目的,如变量容器,可以在不改变应用程序代码的情况下改变配置。对于营销人员来说,GTM更容易使用,而不需要开发人员。你可以将GAnalytics连接到GTM,这样所有的点击都可以在GA仪表板上看到。
这些是使用GTM: http://www.lunametrics.com/blog/2014/04/08/8-reasons-start-google-tag-manager/的一些原因
对于Android,实现草案在https://developers.google.com/tag-manager/android/v4/#getting-started
其他回答
谷歌标签管理器和谷歌分析是完全不同的产品,他们只是一起工作得很好。
谷歌分析为您存储,聚合和操作数据,您可以根据要求输出。 谷歌Analytics还提供了一些推荐的代码片段,允许你在你的网站上“安装”它。然而,这些只是建议。最终,谷歌Analytics将以正确的形式处理接收到的任何数据,而不关心它是如何实现的。
Google Tag Manager allows you to insert custom HTML into your site. You can edit that HTML any time you like, and push changes instantly. It also provides listeners for a number of things such as clicks and form submits, and has a structure for the deployment of tags. Properly used, Google Tag Manager deploys your tags for you. It dictates which data is collected, and when your tags fire. It can fire almost any analytics tag, and much much more. In fact, you could use it to insert pretty much any code onto your website at the push of a button.
所以你看,谷歌标签管理器插入自定义HTML到你的网站,包括分析标签。这些从你的网站获取数据,并将其发送到谷歌分析。谷歌分析然后分析这些数据。
GA是一种分析工具,它提供有关您站点上活动的报告。GTM是一个标签管理器,可以根据定义的规则输出标签。例如,您可以直接在站点上实现GA代码,也可以实现GTM代码并使用GTM输出GA代码。
The main benefit of GTM (or any tag manager worth anything) is that you can use it for multiple tags or code snippets or pretty much anything you want. Usually you implement a data layer and a set of rules, and then within the tag manager interface, put a new tag or code snippet under those rules, using stuff from the data layer. That way for example, if you use GA today and then tomorrow want to also implement a different analytics tool e.g. Adobe Analytics, you can just do it within the GTM interface following the same rules and data layer you setup already.
所以IOW GTM是一个用来输出其他东西的容器。GA是您要输出的“其他东西”之一。
谷歌Analytics的主要工作就是生成关于你网站的报告和统计数据,比如昨天有多少人看到了你的网站,他们使用了什么浏览器,哪些页面是最受欢迎的,等等。它能知道这些东西的唯一方法是如果你在你的所有页面上放一个“标签”。标签是在访问者的浏览器上运行的页面上的javascript代码,它告诉谷歌Analytics的服务器他们正在访问该页面。
如果你只是想把标签放在你网站的主文件中,这样它就会出现在你所有的页面上,这是没有问题的。谷歌Analytics可以使用“referrer”参数来计算访问者在哪个页面,并可以做所有简单的事情,如计算页面浏览量。
但是,您可能希望跟踪有多少人使用某个特定功能。也许您希望将某些页面分组在一起,或者将一些相似但不同的url计算为相同的页面。现在,您需要为所有这些不同的功能和页面组添加唯一的标记,以便谷歌能够识别使用或访问的功能或页面类型。现在就复杂了!你有多个标签,你只是想让标签有时“触发”(例如,除非他们点击这个按钮或使用这个功能,否则不要触发)。
Google Tag Manager makes it easier to manage this mess of tags by letting you define rules for when your tags should fire. It also lets you test your tags to make sure they go off when you load the right page or click a certain button. This is done by putting the Tag Manager's code on your website instead of the actual tags, and as Crayon's answer points out, the tag manager outputs the tags for you. This gives you another cool benefit: you can change your tags and the way they work without actually changing the source code of your website (which you may not be able to do because of slow-release cycles) -- instead you just change it from the Google Tag Manager website, and it will spit out different code on your pages dynamically when they're loaded in the visitor's browser.
谷歌GTM (Tag Manager)是一个标签管理工具。谷歌分析,谷歌Adwords,再营销,Hotjar, Adobe是GTM管理的一些标签和更多。
GTM是一个容器脚本,你添加到网站一次。任何对跟踪的进一步修改都可以在GTM中完成,而无需进一步使用网站代码。
GTM只是在网站中嵌入跟踪代码的一种方式,即使嵌入它也不会跟踪或收集数据,直到您在其配置中添加谷歌Analytics id。
GA是报告和分析工具,而GTM更像是GUI驱动的技术工具,针对非开发人员。
谷歌标签管理器让你管理各种Javascript跟踪代码(也称为标签)在你的网站上。谷歌Analytics跟踪代码就是其中一个标签。
谷歌Analytics是一个提供报表的分析工具。谷歌标签管理器没有报告功能。它用于将数据从您的网站发送到其他营销/分析工具(包括GA)。
想象谷歌标签管理器是一个工具箱,在这里你可以保存所有的工具:一把尺子(谷歌Analytics),一把锤子(谷歌Ads)。
详情见https://www.analyticsmania.com/post/google-tag-manager-vs-google-analytics/