-1

我有 10 个站点,它们共享 1 个主站点来托管新更新。目前,这 10 个网站中的每一个都有其谷歌分析,并且自从主网站启动以来。他们的流量显着下降。我可以在一个主站点上托管 10 个谷歌分析 ID 吗?

4

1 回答 1

1

查看关于类固醇“多个帐户”的 Google Analytics:https ://github.com/CardinalPath/gas#multi-account-tracking

此外,谷歌提供了关于_gaq

https://developers.google.com/analytics/resources/concepts/gaConceptsAccounts

https://developers.google.com/analytics/devguides/collection/gajs/?hl=pl#MultipleCommands

http://scottpatten.ca/2011/11/multiple-google-analytics-codes-on-one-page.html

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1234567-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['account2._setAccount', 'UA-1234568-1']);
_gaq.push(['account2._trackPageview']);
_gaq.push(['account3._setAccount', 'UA-1234569-1']);
_gaq.push(['account3._trackPageview']);
_gaq.push(['account4._setAccount', 'UA-1234570-1']);
_gaq.push(['account4._trackPageview']);
于 2012-10-31T10:43:27.170 回答