Mobile app version of vmapp.org
Login or Join
Eichhorn148

: Self-referrals on cross-domain analytics I have a hotel site which links out to Synxis for our booking engine and then once the booking is complete, passes the user back to our hotel domain

@Eichhorn148

Posted in: #GoogleAnalytics #UniversalAnalytics

I have a hotel site which links out to Synxis for our booking engine and then once the booking is complete, passes the user back to our hotel domain to continue browsing. I have got ecommerce data reporting correctly and have followed the instructions on the Analytics dev site to implement cross domain tracking. For some reason, I am still getting my primary domain showing as our primary referrer.

The code on each site is:

<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', '{google-analytics-code}', 'auto', {'allowLinker': true});
ga('require', 'linker');
ga('linker:autoLink', ['synxis.com'], false, true);
ga('send', 'pageview');
</script>


Obviously in the code on Synxis I have the autolinker set to the hotel domain.

In analytics, I have set the referrer exclusion list to include hotel.com and synxis.com. From the docs I gather this should cover the actual subdomains the users visit (i.e. hotel.com and gc.synxis.com).

For some reason, when I debug the analytics, it looks like when I leave the primary domain, my hotel site is listed as the referrer (when I go back from Synxis to the hotel the referrer field does not show in the console). It seems to be decorating the links as it should and there is no missing analytics code on any pages (the CMS ensures this). Our domain is http and the Synxis portal is https (not sure if this makes a difference).

Any ideas?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Eichhorn148

1 Comments

Sorted by latest first Latest Oldest Best

 

@Megan663

Realised from the referral details in GA that the issue is caused by Synxis using a different shell template for mobile users. I didn't have the Mobile setting in my admin section so didn't realise. Hopefully when I get the code updated this should cure the problem.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme