0

Track Multiple Google Analytics Profiles

Recently I created 2 more domains tech.growwebsite.com and fun.growwebsite.com.I don’t want to get separated data for all domains.So I merged Them in One Script.

Default Script:

Now replace :

Where _setAccount value will be the tracking code and _trackPageview defines the process.
To add multiple tracking code we should merge the functions _gaq.push into a associative array as shown below

Now to add second tracking code append “b.” before _setAccount and _trackPageview in _gaq.push() as shown below

Snippet For Multiple Tracking Code:

Note: To add more tracking codes follow same steps by replacing the prefix before _setAccount and _trackPageview with remaining alphabets (b to z – where default is ‘a’)

Hope it will Help You and please subscribe me and like my facebook page :

and make me proud.By the way if you face any problem then let me know in comment section below

Leave a Reply

Your email address will not be published. Required fields are marked *