Cross and sub domain tracking with Google Analytics Universal Tag <p>This is my first question on Stackoverflow. So apologies if I make a mistake...</p> <p>The challenge: I have a website (main.com), a sub-domain (sub.main.com) and 10 websites that send traffic, back and forth, to the main site and the sub domain. Let's call these sites site01.com, site02.com, site03.com,...,site10.com.</p> <p>My question: How do I implement Universal Tag so I can do cross-domain tracking between main.com, sub.main.com and site01.com, site02.com, site03.com,...,site10.com.</p> <p>I found instructions on how to do cross domain tracking for two sites. For example, on the main domain I will add the following code:</p> <pre><code>**&lt;!-- Universal Analytics --&gt; &lt;script type="text/javascript"&gt; (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','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-XXXXXXXXX-X', 'main.com', {'allowLinker': true}); ga('require', 'linker'); ga('linker:autoLink', ['site01.com']); ga('send', 'pageview'); &lt;/script&gt;** </code></pre> <p>And on site01.com, I will add the code below:</p> <pre><code>**&lt;!-- Universal Analytics --&gt; &lt;script type="text/javascript"&gt; (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','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-XXXXXXXX-X', 'site01.com',{'allowLinker': true}); ga('send', 'pageview'); &lt;/script&gt;** </code></pre> <p>I don't know how to modify the code to include all 10 sites (site01.com, site02.com, site03.com,...,site10.com as part of the cross domain tracking.</p> <p>Also, in relation to sub-domain tracking, I am guessing that the above code will also capture data from the sub-domain site (sub.main.com) with no issues.</p> <p>Any help will be greatly appreciated.</p> <p>Stratos.</p>