Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 721
Tyson Navarre Avatar asked Feb 21 '12 20:02

Tyson Navarre


1 Answers

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']
);
like image 166
jk. Avatar answered Sep 22 '22 18:09

jk.