Analytics
6.5K members online now
6.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 Not Working - Google Tag Manager

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi,

 

I have tried to setup Cross Domain Tracking for a client via tag manager.

 

I set up the tag as follows to fire on both domain's pages:

Screen Shot 2017-06-01 at 14.39.41.png

Screen Shot 2017-06-01 at 14.39.51.png

 

However, it does not seem to work. Can anyone see why this perhaps is the case?

 

Thank you,

 

Daphne 

2 Expert replyverified_user

Cross Domain Tracking Not Working - Google Tag Manager

Top Contributor
# 2
Top Contributor

Hi,

 

Did you add the domains to the "Auto Link Domains" variable? You can add them directly to the field also as a comma-separated list.

Also make sure to add the domains to the Referral Exclusion list under GA Admin -> Property -> Tracking Info.


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

Cross Domain Tracking Not Working - Google Tag Manager

Explorer ✭ ✭ ✭
# 3
Explorer ✭ ✭ ✭

+1 to what Arnold said. You also need the allowLinker true on the destination site as well.

Cross Domain Tracking Not Working - Google Tag Manager

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭

Hi Arnold,

 

Thank you for your quick reply: yes I added the domains to a constant variable as follows: domain1.com, domain2.com. The second domain is set up as follows abcde.fghij.domain2.com, should I add it as a subdomain or domain to the variable?

I also added the domains to the referral exclusion, same question there, I added it as a domain or should I add the subdomain.

Cross Domain Tracking Not Working - Google Tag Manager

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

Hi Matt,

 

Thank you for your reply!

 

I set allowLinker as true.

 

I set up one tag for the two domains or should I have set the tags up separately?

Cross Domain Tracking Not Working - Google Tag Manager

Explorer ✭ ✭ ✭
# 6
Explorer ✭ ✭ ✭

Either way works. The important thing is using the same UA number in both tags.

Cross Domain Tracking Not Working - Google Tag Manager

Rising Star
# 7
Rising Star

Hi Daphne,

 

You already got some great advice here from @Arnold M and @Matt M.  Could you explain what is not working?  Are you seeing the _ga and client id when the user lands on the other site?  If not, links that use JS are probably the culprit.  

 

There is also an issue right now that is caused by plugins and increased browser security so hearing what specifically isn't working would be helpful.

 

Best,

 

Theo Bennett

Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn

Cross Domain Tracking Not Working - Google Tag Manager

Visitor ✭ ✭ ✭
# 8
Visitor ✭ ✭ ✭

Hi Theo,

 

It gives a different client id when the user lands on the other website but it does register page views from both websites in analytics.

 

Thanks,

 

Daphne

Cross Domain Tracking Not Working - Google Tag Manager

Explorer ✭ ✭ ✭
# 9
Explorer ✭ ✭ ✭

Ok so cross domain is not working. Have you gone through Simo's trouble shooting page? It could be a small typo in your linked domains, or the exclusion list.

Cross Domain Tracking Not Working - Google Tag Manager

Visitor ✭ ✭ ✭
# 10
Visitor ✭ ✭ ✭

Hi Theo,

 

Yes I have. I have setup the links multiple times as well as the exclusion list, hence I am at a lost :/