If you just have a website www.website.com and your visitors can also navigate between blog.website.com, support.website.com, you DON’T need to configure cross-domain tracking.
Just go to your Google Tag Manager container, open Google Analytics Settings Variable that is used by your GA tags and set Cookie Domain to auto. By default, all GA Settings Variables have it enabled.
That’s it. There is no need to implement GA cross-domain tracking for subdomains.
In order to make cross-domain tracking work, follow these 4 steps.
Step:1
All domains abc.com, xyz.com must be tracked with the same GA property
Step:2
Go to abc.com’s Google Tag Manager container, open the GA Settings Variable > More Settings > Cross-domain tracking, locate the “Auto Link Domains” field. In that field, you should enter the destination domain’s URL i.e. xyz.com. Once you enter the domain, save the GA Settings Variable.
If it is possible for a visitor to move both ways, back and forth, then enter both domains in that field. Separate domains with a comma, e.g. abc.com, xyz.com.
To test whether the link to the destination page is actually decorated. Do the right-click on the URL (to xyz.com) and select Inspect Element. You’ll see the Elements explorer with the highlighted link you’ve just selected.
Click the link that will redirect to the xyz.com). Once you land on the destination page, you should see the _ga parameter in the URL.
Step:3
Once you've managed to decorate the URL of the xyz.com (and _ga parameter is visible in the URL), then you need to instruct Google Analytics (on xyz.com) to read that parameter and update the _ga cookie on the xyz.com accordingly.
In GTM, go to Variables and open the GA Settings Variable. Then go to More Settings > Fields to Set and enter:
allowLinker (case-sensitive)
true
Hit save.
Step:4
In Google Analytics, open the property of your website/project and go to Admin > Tracking Info > Referral Exclusion List (in the Property column).
Add the domain of the primary website i.e. abc.com. If you have multiple websites “participating” in the cross-domain tracking, add all the domains to that list.
All Done!!
Read more:
https://www.analyticsmania.com/post/google-analytics-cross-domain-tracking-with-google-tag-manager/
Just go to your Google Tag Manager container, open Google Analytics Settings Variable that is used by your GA tags and set Cookie Domain to auto. By default, all GA Settings Variables have it enabled.
That’s it. There is no need to implement GA cross-domain tracking for subdomains.
In order to make cross-domain tracking work, follow these 4 steps.
Step:1
All domains abc.com, xyz.com must be tracked with the same GA property
Step:2
Go to abc.com’s Google Tag Manager container, open the GA Settings Variable > More Settings > Cross-domain tracking, locate the “Auto Link Domains” field. In that field, you should enter the destination domain’s URL i.e. xyz.com. Once you enter the domain, save the GA Settings Variable.
If it is possible for a visitor to move both ways, back and forth, then enter both domains in that field. Separate domains with a comma, e.g. abc.com, xyz.com.
To test whether the link to the destination page is actually decorated. Do the right-click on the URL (to xyz.com) and select Inspect Element. You’ll see the Elements explorer with the highlighted link you’ve just selected.
Click the link that will redirect to the xyz.com). Once you land on the destination page, you should see the _ga parameter in the URL.
Step:3
Once you've managed to decorate the URL of the xyz.com (and _ga parameter is visible in the URL), then you need to instruct Google Analytics (on xyz.com) to read that parameter and update the _ga cookie on the xyz.com accordingly.
In GTM, go to Variables and open the GA Settings Variable. Then go to More Settings > Fields to Set and enter:
allowLinker (case-sensitive)
true
Hit save.
Step:4
In Google Analytics, open the property of your website/project and go to Admin > Tracking Info > Referral Exclusion List (in the Property column).
Add the domain of the primary website i.e. abc.com. If you have multiple websites “participating” in the cross-domain tracking, add all the domains to that list.
All Done!!
Read more:
https://www.analyticsmania.com/post/google-analytics-cross-domain-tracking-with-google-tag-manager/
This article provided invaluable insights into sustainable gardening practices. I appreciate the detailed tips on composting and water conservation. Implementing these strategies will undoubtedly contribute to a greener and healthier environment.
ReplyDeleteDr. Peush Bajpai, recognized as the best Oncologist in Delhi, brings two decades of clinical mastery to Manipal Hospital Delhi. His commitment to exemplary care and innovative cancer treatments sets a standard in healthcare excellence.
"Fantastic blog! Your writing style is engaging, and your content is both informative and enjoyable to read. Keep up the great work, looking forward to more posts!"
ReplyDeleteDr. Sanjeev Kumar, with over 14 years of surgical experience at Manipal Hospital Delhi, is Best Cancer Surgeon Doctor in Delhi. His exceptional skills and compassionate approach set him apart.