I recently integrated Google Universal Analytics to our sites. We have a 3rd party booking engine that goes to a different domain so we utilize cross-domain tracking to pass the cookie through in Analytics.
Once I switched everything over on both sites it seems the cookie is resetting and all ecommerce traffic on the 3rd party site says its "Direct" traffic now instead of whatever medium it should've been. My guess is the cookie isn't passing through correctly but I can't find the solution.
- I added both domains to the Referral Exclusion List in the Admin already.
- The Universal Analytics code is on both domains.
Here is the current script
<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-23854194-1', 'auto', {
'allowLinker': true
});
ga('linker:autoLink', ['a.com', 'b.com'], true, true);
ga('require', 'linker');
ga('send', 'pageview');
</script>