1. Home
  2. Embed Interactive Content
  3. Cross-Domain Tracking With Google Analytics

Cross-Domain Tracking With Google Analytics

If you wish to use Google Analytics with standalone interactive content – i.e. not embedded – which will be on a separate domain than your main domain, you want to enable cross-domain tracking if you wish to have seamless analytics.

Find guidance below on how to setup your Google Tag Manager Settings, or the Google Analytics Addon, so that cross-domain tracking is enabled.

REMINDER: remember to also enable Google Analytics or Google Tag Manager on your project.

When Using Google Tag Manager Addon

To enable cross-domain tracking when using Google Tag Manager Addon you must first setup a Variable:

  1. Give it a recognizable name, such as ga_crossdomain
  2. Select Variable Type: Google Analytics Settings
  3. Provide your Google Analytics property ID as tracking ID (e.g. UA-XXXXXX…)
  4. Expand More Settings dropdown
  5. Expand Fields to Set dropdown
  6. Add a field and set Field Name to “allowLinker” and Value to “true” (both without quotes)
  7. Expand Cross Domain Tracking dropdown
  8. Add one or more host domains (comma separated) in the Auto Link Domains field.

Once you have created your Google Analytics Settings variable, you can now use it whenever creating Google Analytics tags.

When Using Google Analytics Addon

To enable cross-domain tracking when using Google Analytics Addon:

  1. In the Editor, go to your Google Analytics Addon setting
  2. Locate the Seamless Tracking when Not Embedding setting
  3. Add the host domain or domains (comma separated) where the experience will be linked.
  4. Save and close

How To Embed Interactive Experiences

Setup Tracking With External Analytics

Updated on September 26, 2023

Was this article helpful?

Related Articles