谷歌标签管理器和谷歌分析有什么区别? [英] What is the difference between google tag manager and google analytics?

查看:869
本文介绍了谷歌标签管理器和谷歌分析有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读关于网络分析的内容,并且遇到了GTM和GA。

GA似乎是由Google提供的一项服务,它可以生成关于网站流量的报告和统计数据。根据我的理解,为了生成这些报告,我们需要在我们的结尾执行某种类型的标记。



在GTM中,我们也需要添加一些标签在我们的网站。



因此,如果GA& GTM与标记它们之间有什么区别以及为什么我们有两种不同的Google产品有关。

解决方案

Google Analytics '主要工作实际上只是生成有关您网站的报告和统计信息,例如昨天有多少人看到您的网站,他们使用的是哪种网页浏览器,哪些网页最受欢迎等。它可以知道这些东西的唯一方法就是如果你在你的所有页面上加上标签。该标记是您的网页上的JavaScript代码,它在访问者的浏览器上运行,它告诉Google Analytics的服务器他们正在访问该页面。



如果没有问题你只是想把标签放在你网站的主文件中,以便它显示在你的所有页面上。 Google Analytics可以使用引荐来源参数来确定访问者在哪个页面上,并且可以执行所有简单的操作,例如统计页面浏览量。然而,您可能想要跟踪有多少人使用特定功能。也许你想将某些页面分组在一起,或者将一些相似但不同的URL计为同一页面。现在,您需要所有这些不同功能和页面组的唯一标签,以便Google可以识别哪些功能或页面类型已被使用或访问过。现在很复杂!你有多个标签,你只希望标签有时会开火(例如,除非他们点击这个按钮或使用这个功能,否则不会开火。)

Google跟踪代码管理器 可让您更轻松地管理这些标签,因为您可以定义规则以查看标签何时应该触发。它还可以让你测试你的标签,以确保它们在你加载正确的页面或点击某个按钮时关闭。这是通过将代码管理器的代码放在您的网站上而不是实际的标签来完成的,正如Crayon的回答指出的那样,标签管理器会为您输出标签。这给了你另一个很好的好处:你可以改变你的标签和他们的工作方式,而不必实际改变你的网站的源代码(你可能因为缓慢的发布周期而无法做到) - 而只是从Google Tag Manager网站,当它们加载到访问者的浏览器中时,它会动态地在页面上分发不同的代码。


I am reading about web analytic and came across GTM and GA.

It seems that GA is a service provided by google which generates reports and statistics on website traffic. As per my limited understanding in order to generate this reports we need to perform some type of tagging at our end.

It also looks like that in GTM also we need to add some tags in our website.

So, if both GA & GTM are related to tagging what is the difference between them and why do we have two different products by google.

解决方案

Google Analytics' main job is really just generating the reports and statistics about your website, like how many people saw your website yesterday, what web browser they used, which pages were the most popular etc. The only way it can know this stuff is if you put a "tag" on all of your pages. The tag is the javascript code on your pages that runs on the visitor's browser, which tells Google Analytics' servers that they are visiting the page right now.

There's no problem if you just want to put the tag in the master file of your website so it shows up on all of your pages. Google Analytics can use the "referrer" parameter to figure out which page the visitor is on and can do all the simple stuff like counting page views.

However, you may want to track how many people use a specific feature. Maybe you want to group certain pages together, or count some similar but different URLs as being the same page. Now you need unique tags for all these different features and groups of pages so Google can identify which feature or type of page got used or visited. Now it's complicated! You have multiple tags, and you only want the tags to "fire" sometimes (e.g. don't fire unless they click this button or use this feature.)

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.

这篇关于谷歌标签管理器和谷歌分析有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆