Google Analytics 多站点跟踪器于 11 月 1 日停止收集统计数据,单个单站点跟踪器仍在工作
我在许多网站上使用 Google Analytics。我为每个站点都有一个专用跟踪器,以及一个全局跟踪器(用于网络范围内的统计数据)。因此,每个站点都设置为使用多个跟踪器。我正在异步加载 Google Analytics(分析),每个站点上的跟踪器初始化代码如下所示:
var _gaq = _gaq || [];
_gaq.push(
/* global tracker */
['_setAccount', 'UA-XXXXX-XX'],
['_setDomainName', 'none'],
['_setAllowLinker', true],
['_trackPageview'],
['_trackPageLoadTime'],
/* dedicated site tracker */
['t1._setAccount', 'UA-YYYYY-YY'],
['t1._setDomainName', 'none'],
['t1._setAllowLinker', true],
['t1._trackPageview'],
['t1._trackPageLoadTime']
);
11 月 1 日之前,该代码运行良好
。但从 11 月 2 日开始,站点跟踪器仍然工作正常,但全局跟踪器刚刚停止收集统计数据。从那时起,它几乎每天都报告“0”访客(11 月 2 日除外,奇怪的是,12 月 9 日报告的访客为“1”),低于 11 月 1 日每天数十万的访客数量 并
我尝试向全局跟踪器添加前缀 t0
,如下所示:
var _gaq = _gaq || [];
_gaq.push(
/* global tracker */
['t0._setAccount', 'UA-XXXXX-XX'],
['t0._setDomainName', 'none'],
['t0._setAllowLinker', true],
['t0._trackPageview'],
['t0._trackPageLoadTime'],
/* dedicated site tracker */
['t1._setAccount', 'UA-YYYYY-YY'],
['t1._setDomainName', 'none'],
['t1._setAllowLinker', true],
['t1._trackPageview'],
['t1._trackPageLoadTime']
);
给了它 48 小时,但仍然没有帮助。我是否错过了一些新的格式要求,而此初始化代码没有遵循?还有什么可以解释这种行为吗?
I am using Google Analytics for a number of websites. I have one dedicated tracker for each site, as well as one global tracker (for network-wide stats). So each site is set up to use multiple trackers. I am loading Google Analytics asynchronously, and my tracker initialization code on each site looks like this:
var _gaq = _gaq || [];
_gaq.push(
/* global tracker */
['_setAccount', 'UA-XXXXX-XX'],
['_setDomainName', 'none'],
['_setAllowLinker', true],
['_trackPageview'],
['_trackPageLoadTime'],
/* dedicated site tracker */
['t1._setAccount', 'UA-YYYYY-YY'],
['t1._setDomainName', 'none'],
['t1._setAllowLinker', true],
['t1._trackPageview'],
['t1._trackPageLoadTime']
);
This was working great through Nov 1.
But starting Nov 2nd, the site trackers are all still working fine, but the global tracker just stopped collecting stats. It is reporting "0" visitors for almost every day since then (with the exception of Nov 2 itself and, oddly, Dec 9, each of which reported "1" visitor), down from hundreds of thousands of visitors each day through Nov 1.
I tried adding a prefix t0
to the global tracker like this:
var _gaq = _gaq || [];
_gaq.push(
/* global tracker */
['t0._setAccount', 'UA-XXXXX-XX'],
['t0._setDomainName', 'none'],
['t0._setAllowLinker', true],
['t0._trackPageview'],
['t0._trackPageLoadTime'],
/* dedicated site tracker */
['t1._setAccount', 'UA-YYYYY-YY'],
['t1._setDomainName', 'none'],
['t1._setAllowLinker', true],
['t1._trackPageview'],
['t1._trackPageLoadTime']
);
And gave it 48 hours, and still no help. Is there some new formatting requirement that I missed that this initialization code isn't following? Anything else that might explain this behavior?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
过滤器。通常是数据突然消失的罪魁祸首。
此外,当您设置分析时,创建不包含过滤器的
原始
配置文件始终是一个好主意。使用第二个配置文件添加过滤器。您可以在使用相同跟踪代码的同一帐户下创建多个个人资料,这样您就不必向您的跟踪代码添加额外的['t0._setAccount', 'UA-XXXXX-XX']
。来自如何创建过滤器:
Filters. Usually the culprit when data suddenly disappears.
Also, when you set up analytics is it always a good idea to create a
raw
profile that contains no filters. Use a second profile to add filters to. You can create multiple profile under the same account that uses the same tracking code so you do not have to add an additional['t0._setAccount', 'UA-XXXXX-XX']
to your tracking code.From How do I create a filter: