Back

Cross domain tracking is the ability to track a user’s session across separate domains to create a complete view of a user’s actions. For example, if you have two domains interlinking with each other: www.example.com and www.another-domain.com. Google Universal Analytics, by default, would count a single user who visited both properties as two separate users with two separate sessions. By enabling cross-domain tracking, the user will be represented as a single user between both domains.

Part of the series: Google Universal Analytics Guide for iQ Tag Management

In this article:

Table of Contents Placeholder

Tag Configuration

Google Universal Analytics is already enabled to track across multiple subdomains (e.g. test.example.com, example.com, store.example.com). If you have specific subdomains to be tracked enter them in the Domain field..

domain.png

 

Cross-Domain Setting

  1. In the Google Universal Analytics tag configuration, toggle the Cross-Domain Tracking drop-down to On.
  2. In the Cross-Tracking Domains field, add a comma-separated list of the domains you wish to enable cross-domain tracking for. 

    Do not insert a space after the commas.

    gua2-domains.png 

  3. Save and publish your changes.

Validation

To ensure that your domains are tracking users correctly, navigate to one of your domains and click a link that takes you to your second domain. You should see the Google Universal Analytics cookie value appended in the URL and would read as “_ga=” with a long string of numbers.

In the screenshot below, I navigated to www.example.com and clicked a link that lead me to www.another-domain.com. Notice how the _ga tracking code is now in the URL:

gua-cookie.png

 This confirms that cross-domain tracking is working on expected from the browser.