Cross Domain Auto Linking (auto link plugin)

35 views
Skip to first unread message

CEBGlobal

unread,
Nov 30, 2014, 11:00:39 PM11/30/14
to google-analyti...@googlegroups.com
Hi, Can some somebody please guide/help with cross domain auto linking? 

Issue:
We have moved to Universal Analytics few month back and since then conversion attribution is broken. Almost all conversions (form submission) are attributed to direct traffic. We have our confirmation page on third domain (now.eloqua.com) but it has the same code as we have on the website. But I guess due to different domains cookies are getting drop in transition from main website to the confirmation page. 

Possible Solution, is i guess using Cross Domain Auto Linking (auto link plugin), I have very limited understanding of the codes so if somebody can help in what to keep in mind while using the code and what exactly code should be, will be very helpful... Do we have to put two slightly different codes on the form page and confirmation page or it would be the same ?

is the below code is okay ??

<!-- Google Analytics -->

  (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-xxxxxx-X', 'auto');
  ga('send', 'pageview');
  ga('create', 'UA-xxxxxx-X', 'auto', {'allowLinker': true});
  ga('require', 'linker');
  ga('linker:autoLink', ['now.eloqua.com]);    
  ga('send', 'pageview');  

BadriNarayanan Srinivasan

unread,
Dec 10, 2014, 5:56:00 AM12/10/14
to google-analyti...@googlegroups.com
Hi CEBGlobal -

If your confirmation page is in subdomain, you do not need any additional setup if you are using automatic cookie configuration i.e. using 'auto' linker plugin.

Cross domain tracking is only required if there is a change in main domain i.e. 'sub.main-one.com' to 'sub.main-two.com'.

Cheers,
Badri
Reply all
Reply to author
Forward
0 new messages