AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
2.5K members online now
2.5K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Cross-domain tracking

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi,

 

I am trying to implement cross-domain tracking to 2 websites using Universal Analytics. So far I was able to implement tracking code with the same (UA ID) to both websites and exclude both domains in Referral Exclusion List.

 

When I click on the link, the client ID is passed, however, in GA I can still see 2 separate sessions and the source for the destination page is direct (since I excluded domains in referral exclusion list, otherwise I see the first website as a referrer) and previous path is (entrance).

 

Do you have any idea, why the cross-domain tracking does not work? Below you can see the used code.

 

xyz.com code:

 

ga('create', 'UA-XXX-Y', 'auto', {'allowLinker': true});
ga('require', 'linker');
ga('linker:autoLink', ['abc.com'] );
ga('send', 'pageview');

 

<a href="https://www.abc.com/destination-page" onclick="eventTrack('eventcategory','eventaction');" target="_blank" class="class"><span>some text<img style="" src="/some-image.jpg" alt=""></span></a>

 

abc.com code:

 

ga('create', 'UA-XXX-Y', 'auto', {anonymizeIp: true}, {'allowLinker': true});
ga('set', 'anonymizeIp', true);
ga('require', 'linker');
ga('linker:autoLink', ['xyz.com'] );
ga('send', 'pageview', {
  'anonymizeIp': true
});

 

Thanks for any suggestions.

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Dev G
August 2016

Re: Cross-domain tracking

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Nevermind, I found the solution. The problem was in the way the code was implemented along with IP anonymization on the destination pages. Thanks for your help anyway.

View solution in original post

Re: Cross-domain tracking

Participant ✭ ✭ ✭
# 2
Participant ✭ ✭ ✭
Hi,

Could you share both URLs?
Then it's a bit easier to figure out the possible reason. Smiley Happy

Thanks,
Taavi
Marked as Best Answer.
Solution
Accepted by topic author Dev G
August 2016

Re: Cross-domain tracking

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Nevermind, I found the solution. The problem was in the way the code was implemented along with IP anonymization on the destination pages. Thanks for your help anyway.