Mobile app version of vmapp.org
Login or Join
Cofer257

: Google Analytics tracking code The website example.com has different Google Analytics tracking codes. One we installed in the agency UA-XXXXXXXX-1 and another one the webmaster installed UA-XXXXXXXX-3

@Cofer257

Posted in: #GoogleAnalytics

The website example.com has different Google Analytics tracking codes.
One we installed in the agency UA-XXXXXXXX-1 and another one the webmaster installed UA-XXXXXXXX-3 property tag that monitors our traffic at the agency and one roll up property tag for all the 115 agencies UA-XXXXXXXX-15. ( for the main website example2.com)

I read installing multiple instances of the Google Analytics Tracking code on a single web page, especially different versions of the code, is not a supported implementation.

I don't have the script knowledge to know it this correct the way it is installed right now. I would appreciate your help who can read this script.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Cofer257

2 Comments

Sorted by latest first Latest Oldest Best

 

@BetL925

Code looks ok, but you should check it using Google Tag Assistant

It will probably complain about a non-standard implementation, but you should see if the three pageview requests are being made.

10% popularity Vote Up Vote Down


 

@Alves908

This looks like a correct implementation - not only are all of the instances of the tracker the same, current version of GA, they also make correct use of named trackers that send to different GA properties.

The tracker name is what is set as "name" in the configuration object ( the thing in curly brackets) on tracker creation:

ga('create', 'UA-XXXXXXXX-1', {'name':'trackerName'})


The separate tracking ids (UA-XXXXXXX-1, UA-XXXXXXX-2 etc) make sure that there is no double counting (since the hits go to different properties) while the tracker name makes sure that the different tracker instances do not overwrite each other an can be configured and called separately.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme