Reputation: 95
Have a lot of client sites that use a similar system of their primary domain with an external checkout software hosted elsewhere. Their analytics is filled with self-referrals from the primary domain. For example.
I have a primary domain in which I have entire control. This has a Google Tag Manager implementation using Universal Analytics. The secondary domain, a booking system, uses classic analytics.
I have no control over how the analytics on the booking system is implemented (aside from setting the tracking ID), but the developers say it is setup to use cross-domain tracking. Their implementation has:
_gaq.push(['_setAccount', 'UA-67867867-1']);
_gaq.push(['_setDomainName', 'www.seconddomain.com']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_setCookiePath', '/properties/abcd']);
_gaq.push(['_trackPageview']);
_gaq.push(['_cookiePathCopy', '/reservations/abcd/']);
My understanding is I need to configure GTM to mirror these settings as per the "Inconsistent Tracking Code Configuration" directions at: https://support.google.com/analytics/answer/3198398?hl=en
In GTM, "Allow Linker" is set to true. "Auto Link Domains" has "primarydomain.com, seconddomain.com", but this seems pointless as GTM is not on the second domain. "Cookie Domain" is auto.
Self-referrals still happen. What am I missing?
Upvotes: 0
Views: 490
Reputation: 269
Unfortunately, the cross domain implementations in analytics.js and ga.js are incompatible with each other. The booking system will need to upgrade to analytics.js (or you will need to downgrade to ga.js).
To get rid of referrals from the booking system, follow these instructions: https://support.google.com/analytics/answer/2795830
Upvotes: 1