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
1.9K members online now
1.9K 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 Multiple UA and GTM accounts

Follower ✭ ☆ ☆
# 1
Follower ✭ ☆ ☆

Hi All,

 

My client has a seperate UA-account and Google Tag Manager for every domain. We wish to link each domain. Our approach: Activiate the allowLinker (set to true) and add a list of all domains to link in the Google Tag Manager's Auto Link Domains Cross Domain tracking feature. We have done so for all domains conform this blog:  http://www.lunametrics.com/blog/2015/06/16/cross-domain-tracking-with-google-tag-manager/

 

However, we do not see that the Client ID is transferred and no addiotional paramter added to the url after going to a different location. Hence, my question: Is it mandatory to send the data from all domains to one UA property using one Google Tag Manager? Does anyone know why cross-domain tracking does not work for me?

 

Kind regards,

Joost

2 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by Bronwyn V (Top Contributor)
February

Re: Cross Domain tracking Multiple UA and GTM accounts

Top Contributor
# 2
Top Contributor
Hi Joost,

You can use different Google Tag Manager containers on different sites but you need to use the same UA property if you want to implement cross domain tracking. Unfortunately you cannot set up cross domain tracking across different properties. 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 Bronwyn V (Top Contributor)
February

Re: Cross Domain tracking Multiple UA and GTM accounts

Top Contributor
# 2
Top Contributor
Hi Joost,

You can use different Google Tag Manager containers on different sites but you need to use the same UA property if you want to implement cross domain tracking. Unfortunately you cannot set up cross domain tracking across different properties. 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: Cross Domain tracking Multiple UA and GTM accounts

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Hi Arnold,

Thank you! Tested this and you're right. I can transfer Client ID data, but no traffic source data. We will look into your solution.

Best regards,
Joost

Cross Domain tracking Multiple UA and GTM accounts

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭

Arnold, 

 

I want to set up cross-domain tracking. One domain has GTM the other does not. Both are under the same UA property. How can I set that up? Could you guide me to a resource? 

Cross Domain tracking Multiple UA and GTM accounts

Follower ✭ ☆ ☆
# 5
Follower ✭ ☆ ☆

Hi Thomas, 

 

Not Arnold, but the original questioner is going to answer this for you. I am not going to completely spell it out for you as we have perfect documentation for that. Like Arnold already noted, for cross-domain tracking to work you need to send data from all domains (the domains you wish to activate cross-domain tracking for) to the same Google Analytics property. You can use a set-up were some domains are tracked using GTM and some the hard-coded way. 

 

Documentation for doing this for the domains using GTM, I always go to Lunametrics for documentation. Link: https://www.lunametrics.com/blog/2015/06/16/cross-domain-tracking-with-google-tag-manager/. Make sure that when you Create an Auto Link Domains Variable, you also include all the domains that use the hard coded way.

 

Implementation for the domains that use the hard-coded method, Google actually has good documentation themselves. We now have three libraries, we can choose from, so I do not know which one is most relevant for you:

ga.js: https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSite

analytics.js: https://developers.google.com/analytics/devguides/collection/analyticsjs/linker

gtag.js: https://developers.google.com/analytics/devguides/collection/gtagjs/cross-domain

 

Again, include all relevant domains that should share cookie information to keep track of user, session and acquisition data.

 

Good luck!

Cross Domain tracking Multiple UA and GTM accounts

Visitor ✭ ✭ ✭
# 6
Visitor ✭ ✭ ✭

I want to track the traffic source from domainA.com to domainB.com (Since the conversion happens in domainB.com).

How can I set cross domain tracking between these two domains (domainA.com & domainB.com).
Either with the same UA codes for both the domains which has different GTM containers or

same GTM containers with different UA codes across these two websites.

Can anyone help me out?

Re: Cross Domain tracking Multiple UA and GTM accounts

Top Contributor
# 7
Top Contributor

@Arnold M wrote:

You can use different Google Tag Manager containers on different sites but you need to use the same UA property if you want to implement cross domain tracking. Unfortunately you cannot set up cross domain tracking across different properties. Hope this helps.


 

Bronwyn Vourtis, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here

Cross Domain tracking Multiple UA and GTM accounts

[ Edited ]
Visitor ✭ ✭ ✭
# 8
Visitor ✭ ✭ ✭

But still I am unable to track the domains under the cross domain tracking and not sure where to setup this GTM settings. Either in domainA.com or in domainB.com

Re: Cross Domain tracking Multiple UA and GTM accounts

Top Contributor
# 9
Top Contributor

@Shyam Sundar G

 

Not Arnold, but the original questioner is going to answer this for you. I am not going to completely spell it out for you as we have perfect documentation for that. Like Arnold already noted, for cross-domain tracking to work you need to send data from all domains (the domains you wish to activate cross-domain tracking for) to the same Google Analytics property. You can use a set-up were some domains are tracked using GTM and some the hard-coded way. 

 

Documentation for doing this for the domains using GTM, I always go to Lunametrics for documentation. Link: https://www.lunametrics.com/blog/2015/06/16/cross-domain-tracking-with-google-tag-manager/. Make sure that when you Create an Auto Link Domains Variable, you also include all the domains that use the hard coded way.

 

Implementation for the domains that use the hard-coded method, Google actually has good documentation themselves. We now have three libraries, we can choose from, so I do not know which one is most relevant for you:

ga.js: https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSite

analytics.js: https://developers.google.com/analytics/devguides/collection/analyticsjs/linker

gtag.js: https://developers.google.com/analytics/devguides/collection/gtagjs/cross-domain

 

Again, include all relevant domains that should share cookie information to keep track of user, session and acquisition data.

This thread has been closed to new replies as the original thread is over a year old.

If you have a new or unanswered question related to this topic, please start a new thread and post a clear, specific and detailed question that describes your particular situation.

To start a new thread, please go to the top level of the Community, and from there, click on the board that is most closely related to your question. After that, you can click on the pink "+" sign in the lower right corner of the screen to start a new topic.

Thank you.

Bronwyn Vourtis, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here