: 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
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.
More posts by @Cofer257
2 Comments
Sorted by latest first Latest Oldest Best
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.
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.