Google analytics


Google Analytics

Add Google Analytics and cross-domain tracking to Checkout.

Learn how to add Google Analytics and set up cross-domain tracking for your Checkout page.

Modify the tracking code 

To set up cross-domain tracking for multiple top-level domains, you must alter the Analytics tracking code for each domain. You will need basic knowledge of HTML and JavaScript or to work with a developer to set up cross-domain tracking.

The examples in this article use the Universal Analytics tracking code snippet - (analytics.js).

Set up a property 

For cross-domain tracking, set up one property in your Analytics account. Use the same tracking code snippet and tracking ID from that property for all your domains.

Be advised

You need to edit the tracking code snippet for cross-domain tracking to work.

If you haven’t already included the snippet on all your web pages, you may want to copy and paste it into a text editor before continuing with these instructions. This way, you only have to make the changes once before including the modified snippet on all your web pages.

Edit the tracking code for the primary domain, then find the create line in the snippet.\

For a website called “”, it looks like this:

Google Analytics script

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

Make the following changes to the snippet:

Google Analytics script

ga('create', 'UA-XXXXXXX-Y', 'auto', { allowLinker: true });
ga('require', 'linker');
ga('linker:autoLink', ['']);

Remember to replace the example tracking ID (UA-XXXXXX-Y) with your actual tracking ID, and replace the example secondary domain ( with your actual secondary domain name.

Add to Dashboard 

To add your Google Analytics ID within your Zonos Dashboard settings, simply go to:

  • Settings -> Checkout Settings -> SEO -> Google Analytics tracking ID
  • When added, make sure to click Save.

Graphic that shows how to add the Google Analytics ID to Zonos


Where can I find more information about Google Analytics?

Learn more by going to Google Analytics.

Was this page helpful?