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
2K members online now
2K 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

Multiple subDirectorys, Tracking Codes + 3rd party check out cart

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

My dear friends! 

I have multiple scenario as per my subject as following: 

Hypothesis: 

Domain:

Main Doman => www.abc.com (1 individual GA tracking code "UA-abc-1")

1st Subdirectory => www.abc.com/123 (1 individual GA tracking code "UA-abc123-1")

2nd Subdirectory => www.abc.com/456 (1 individual GA tracking code 'UA-abc456-1")

----------------------

Third-party checl out card

1st - 3rd Party check out cart => www.3rdParty.com for abc.com

2nd - 3rd party check out cart => www.3rdParty.com for abc.com/123

3nd - 3rd party check out cart => www.3rdParty.com for abc.com/456

----------------------

GA code implemented on domain => www.abc.com

ga('create', 'UA-abc-1', {'cookieDomain':'abc.com','cookieName':'abc','cookieExpires':1200}, {'allowLinker': true});
ga('create', 'UA-abc123-1', {'cookieDomain':'abc.com','cookieName':'abc','cookieExpires':1200}, {'allowLinker': true}, {'name': 'abc123'});
ga('create', 'UA-abc456-1', {'cookieDomain':'abc','cookieName':'abc','cookieExpires':1200}, {'allowLinker': true}, {'name': 'abc456'});
ga('require', 'linker');
ga('abc123.require', 'linker');
ga('abc456.require', 'linker');
ga('linker:autoLink', ['3dparty.com']);
ga('require', 'displayfeatures');
ga('send', 'pageview');
</script>

GA code implemented on domain => www.abc.com/123

  ga('create', 'UA-abc123-1', {'cookieDomain':'abc.com','cookieName':'abc','cookieExpires':1200}, {'allowLinker' : true});
  ga('require', 'linker');
  ga('linker:autoLink', ['3rdparty.com'] );
  ga('require', 'displayfeatures');
  ga('send', 'pageview');

GA code implemented on domain => www.abc.com/456

 ga('create', 'UA-abc456-1', {'cookieDomain':'abc.com','cookieName':'abc','cookieExpires':1200}, {'allowLinker' : true});
  ga('require', 'linker');
  ga('linker:autoLink', ['3rdparty.com'] );
  ga('require', 'displayfeatures');
  ga('send', 'pageview');

GA code implemented on domain => 3rdparty.com for abc.com

 ga('create', 'UA-abc-1', {'cookieDomain':'abc.com','cookieName':'abc','cookieExpires':1200}, {'allowLinker' : true});
  ga('require', 'linker');
  ga('linker:autoLink', ['abc.com'] );
  ga('require', 'displayfeatures');
  ga('send', 'pageview');

GA code implemented on domain => 3rdparty.com for abc.com/123

 ga('create', 'UA-abc123-1', {'cookieDomain':'abc.com','cookieName':'abc','cookieExpires':1200}, {'allowLinker' : true});
  ga('require', 'linker');
  ga('linker:autoLink', ['abc.com'] );
  ga('require', 'displayfeatures');
  ga('send', 'pageview');

GA code implemented on domain => 3rdparty.com for abc.com/456

 ga('create', 'UA-abc456-1', {'cookieDomain':'abc.com','cookieName':'abc','cookieExpires':1200}, {'allowLinker' : true});
  ga('require', 'linker');
  ga('linker:autoLink', ['abc.com'] );
  ga('require', 'displayfeatures');
  ga('send', 'pageview');

Is it on the right way to implement cross domain tracking code link above scenario? 

Thanks in advance for your advice! 

 

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Measmony S
January 2016

Re: Multiple subDirectorys, Tracking Codes + 3rd party check out cart

Top Contributor
# 2
Top Contributor
Hi,

On www.abc.com you need to run every command for each tracker separately:

ga('linker:autoLink', ['3dparty.com']);
ga('abc123.linker:autoLink', ['3dparty.com']);
ga('abc456.linker:autoLink', ['3dparty.com']);

ga('send', 'pageview');
ga('abc123.send', 'pageview');
ga('abc456.send', 'pageview');

https://developers.google.com/analytics/devguides/collection/analyticsjs/creating-trackers#working_w...

Hope this helps

Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Measmony S
January 2016

Re: Multiple subDirectorys, Tracking Codes + 3rd party check out cart

Top Contributor
# 2
Top Contributor
Hi,

On www.abc.com you need to run every command for each tracker separately:

ga('linker:autoLink', ['3dparty.com']);
ga('abc123.linker:autoLink', ['3dparty.com']);
ga('abc456.linker:autoLink', ['3dparty.com']);

ga('send', 'pageview');
ga('abc123.send', 'pageview');
ga('abc456.send', 'pageview');

https://developers.google.com/analytics/devguides/collection/analyticsjs/creating-trackers#working_w...

Hope this helps

Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

Re: Multiple subDirectorys, Tracking Codes + 3rd party check out cart

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
My dear Arnold,
Thank you so much for your help!
Let's me try and implements it and will give you a result ASAP.
Once again! Thank you!