Analytics
2.5K members online now
2.5K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Tracking 6 sites with 7 properties, one master property

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I'm about to track 6 sites, all with their own UA-number and their own tracking code. I will not be using Google Tag Manager but the analytics.js tracking code. What I want to do is to track all these 6 sites toward one master view but also with their own property in analytics. The 6 sites all have their own channel and are administrated separately but will share the same domain: example.com but will be separated by example.com/se,  example.com/us example.com/dk etc. There will be in totalt 7 different UA-xxxxxx, where as one of them will be implemented on all of the 6 sites. The "master view".

 

Will this work? The 6 separate tracking codes will have no problem tracking, but will the master gather information from all 6 properties and repport accordingly in to one master view?

 

My idea of the script. The master view is specified by UA-XXXXX-Z

 

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
 
ga('create', 'UA-XXXXX-Y', 'auto');
ga
('create', 'UA-XXXXX-Z', 'auto', 'clientTracker');
ga('send', 'pageview');
ga
('clientTracker.send', 'pageview');
 
 

Tracking 6 sites with 7 properties, one master property

Follower ✭ ✭ ☆
# 2
Follower ✭ ✭ ☆

I think that you could just run one property and UA code and one master view.

Then for the 6 example.com/us, example.com/se you could just create multiple views and apply 2 filters (one to include the domain name in reporting, and one to filter only the example.com/us or /se) 

Then for each view you can assign permissions to allow specific users to manage each.