Google Analytics 多站点跟踪器于 11 月 1 日停止收集统计数据,单个单站点跟踪器仍在工作

发布于 2024-12-21 09:51:45 字数 1302 浏览 2 评论 0原文

我在许多网站上使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

生生漫 2024-12-28 09:51:45

过滤器。通常是数据突然消失的罪魁祸首。

此外,当您设置分析时,创建不包含过滤器的原始配置文件始终是一个好主意。使用第二个配置文件添加过滤器。您可以在使用相同跟踪代码的同一帐户下创建多个个人资料,这样您就不必向您的跟踪代码添加额外的 ['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:

If you'd like to apply filters to your data while keeping your "raw" data intact, you can create a duplicate profile in your account. To do so, add a new profile using the Add profile for an existing domain option. When this option is selected, the tracking code generated for the new profile will be identical to the tracking code for the original profile, and data will be imported simultaneously into both. You won't need to change the tracking code on your site, and any filters applied to the first profile will not affect data in the second.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文