So, I have two sites for the client, we will say that www.main.com is their main site, and www.signup.com is the site on which the user subscribes to a particular service.
I recently switched signup.com to universal analytics so that we can implement cross-domain tracking through the autolink plugin.
I used this article to help me set up code for each domain.
Here is what I am on main.com :
<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','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-11865301-1', 'auto', {'allowLinker': true});
ga('require', 'linker');
ga('linker:autoLink', ['signup.com'] );
ga('require', 'displayfeatures');
ga('send', 'pageview');
</script>
NOTE. I'm not sure what displayfeatures is. I was told that a third-party provider had to configure the code at some point and that I should not delete anything.
signup.com:
<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','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-11865301-1', 'auto'), {'allowLinker': true};
ga('require', 'linker');
ga('linker:autoLink', ['main.com'] );
ga('send', 'pageview');
</script>
, , main.com .
, , / (direct)/(none), ( ). , .
14 . ( ), 13 / (direct)/(none). , /, bing/organic, - .
googling, . .
: , 24 .
() ( ) main.com. , , , main.com, . , main.com.
, main.com signup.com.
- ?