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
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. In the example below, "stories.com" is your site or primary domain.
ga('create', 'UA-ZZZZZZ-Y', 'stories.com');
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', ['app.maker.co'] );
Remember to replace the example tracking ID (UA-ZZZZZZ-Y) with your own tracking ID, and insert secondary domain, app.maker.co, at the end of this addition.
When complete, the entire snippet should look something like:
<script>
(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','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-ZZZZZZZ-Y', 'auto', {'allowLinker': true});
ga('require', 'linker');
ga('linker:autoLink', ['app.maker.co'] );
ga('send', 'pageview');
</script>
This additional tracking-code snippet must appear every place your GA tracking ID appears on your site (or primary domain).
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: app.maker.co and click Create to save:
This referral exclusion list uses contains matching, which means that when you enter app.maker.co as a referral exclusion domain.
Visit our page, How to test your cross domain tracking, to ensure that your tracking is set-up and working properly.