如何让Google跟踪代码管理器Analytics代码使用DEFAULT跟踪器? [英] How to make Google Tag Manager Analytics tags use the DEFAULT tracker?

查看:93
本文介绍了如何让Google跟踪代码管理器Analytics代码使用DEFAULT跟踪器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

GTM中定义的分析标签(不使用自定义HTML标签进行分析)似乎有自己的跟踪器。



我在我的网页中提供了基于_gaq.push()的配置(一些自定义变量)。



此配置适用于默认跟踪器

另一方面,GTM定义了自己的跟踪器,其中包含随机名一个数字),并且在GTM Web GUI中完成的所有配置都应用到该定制指定跟踪器上。



如何让GTM使用默认的无名跟踪器,以便我的配置即使GTM GA标签也是如此?

您可以通过执行 _gat来查看跟踪器列表和名称。< x> 在加载GA的页面上。
通常是p或C或一些这样的缩小变量。您可能还会使用_gat.getTrackers()

解决方案

我想我明白你在说什么。如果我错了,请告诉我。

虽然不鼓励用GTM命名您的追踪器,但您可以通过转到Google Analytics标记(在GTM中)并转到更多设置>高级配置>跟踪器名称。检查跟踪器名称并将其留空,然后单击保存。




The analytics tags defined in GTM (not using a custom HTML tag for analytics) seem to have their own tracker.

I have _gaq.push() based configuration (some custom variables) in my web page in the rendered html.

And this configuration is applied to the default tracker.

GTM on the other hand defines its own tracker with random name (its actually a number) and all configuration done in the GTM web GUI is applied on that custom named tracker.

How do I make GTM use the default nameless tracker, so that my configuration holds true even from GTM GA tags?

You can look at tracker list and names by doing a _gat.<x> on a page where GA is loaded. is usually p or C or some such minified variable. You might also use _gat.getTrackers()

解决方案

I think I understand what you are saying. If I'm wrong, let me know.

Although it's discouraged to name your trackers in GTM, you can do it by going to the Google Analytics Tag (in GTM) and go to More Settings > Advanced Configuration > Tracker Name. Check the Tracker Name and leave it blank, and click Save.

这篇关于如何让Google跟踪代码管理器Analytics代码使用DEFAULT跟踪器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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