Jun 01, 2017 117

How to set-up cross domain tracking with GA

Setting up cross-domain tracking with GA

To properly track all traffic and data generated from Maker, you will need to set-up cross-domain tracking.

Before moving forward with your cross-domain tracking, ensure that someone from your team has filled out the GA information fields in Partner Settings.

Note: You'll need the help of your developer for steps 3-6.

1. Sign in to Google Analytics
2. Click Admin at the bottom of the pag

3. In the PROPERTY column, select Tracking Info from the menu

4. Select Tracking Code to get your property's tracking ID and snippet code

5. Edit the snippet code

You'll use the same ID and snippet from that property for all of your domains. But you will need to edit the snippet in order for cross-domain tracking to work. (This is longer text located below your Tracking ID).

Copy and paste the snippet where you'll be able to make the necessary changes.

Then, find the create line in the snippet. 

  ga('create', 'UA-ZZZZZZ-Y', '');

In this example, your site - or primary domain- is the example ''.

Make the following changes and additions to the snippet (the changes you need to make are in bold red text):

ga('create', 'UA-ZZZZZZ-Y', 'auto', {'allowLinker': true});

ga('require', 'linker');

ga('linker:autoLink', [''] );

Remember to replace the example tracking ID (UA-ZZZZZZ-Y) with your own tracking ID, and insert secondary domain,, at the end of this addition.

When complete, the entire snippet should look something like:


(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//','ga');

ga('create', 'UA-ZZZZZZZ-Y', 'auto', {'allowLinker': true});

ga('require', 'linker');

ga('linker:autoLink', [''] );

ga('send', 'pageview');


6. Add this snippet to your site

This additional tracking-code snippet must appear every place your GA tracking ID appears on your site (or primary domain).

7. Add Maker as a referral traffic source in your Google Analytics account

Make sure you're still signed-in to your Google Analytics account. Click on the Admin icon again in the menu bar at the bottom of any page.

In the ACCOUNT column, use the dropdown menu to select the account of the site you're linking with Maker.

In the PROPERTY column, use the dropdown to select a property. Once your property is selected, click Tracking Info, then Referral Exclusion List:

To add Maker as a domain, click +ADD REFERRAL EXCLUSION.

Enter Maker's Domain name: and click Create to save:

This referral exclusion list uses contains matching, which means that when you enter as a referral exclusion domain.

8. Test it out

Visit our page, How to test your cross domain tracking, to ensure that your tracking is set-up and working properly.