Multiple Google Analytics Tracking IDs in Single Page? [closed]

微笑、不失礼 提交于 2019-12-20 23:09:55

问题


We are creating a site that deals with multiple users, each with their own 'white label' portal that is accessed by a unique sub-domain URL. We want to maintain our own tracking metrics through Google analytics but also wish to provide the white label users the option of using their own tracking ID for their unique sub-domain.

My question is this: Is it possible (or even supported) to have multiple Tracking ID code snippets on a single page in a web site?


回答1:


Google Docs has information on this at One Push, Multiple Commands:

_gaq.push(
    ['_setAccount', 'UA-XXXXX-1'],
    ['_trackPageview'],
    ['b._setAccount', 'UA-XXXXX-2'],
    ['b._trackPageview']
);


来源:https://stackoverflow.com/questions/9384654/multiple-google-analytics-tracking-ids-in-single-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!