Jun 01, 2017 94

Google Analytics: How to set-up cross domain tracking

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

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. Give Maker your GA Info

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

6. 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');


7. 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).

8. 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: Maker. me and click Create to save:

This referral exclusion list uses contains matching, which means that when you enter as a referral exclusion domain, the traffic from is also excluded (because the domain name contains

9. Test it out

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