Multiple Google Analytics Tracking IDs in Single P

2020-06-03 06:35发布

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条回答
欢心
2楼-- · 2020-06-03 07:40

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']
);
查看更多
登录 后发表回答