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 www.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.

enter image description here

2 Answers 2


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.


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.