Cross-domain tracking makes it possible for Analytics to see sessions on two related sites as a single session. It also helps you to better track your goal conversions. In this guide, we’ll show you how to implement cross-domain tracking using MonsterInsights.
Why You Need Cross-Domain Tracking
You need cross-domain tracking when your Google Analytics session spans across two or more domains and you want to track the sessions across different domains as a single session.
Let’s take a detailed look.
Imagine that a user lands on your site from a PPC campaign, and then goes to your third-party shopping cart’s site like Shopify to complete the checkout process.
If you’re not implementing cross-domain tracking on your site, here is how Google Analytics tracks ecommerce transactions.
- It counts the same user as two different users and tracks this single session as two sessions.
- Instead of crediting the PPC campaign for conversion, it simply tells you that someone from your site made a purchase. That means you can’t determine the original source of your goal conversion.
Another benefit of implementing cross-domain tracking is that you can collect data from different domains in a single report.
Let’s take a look at how to set up cross-domain tracking in MonsterInsights.
- Before we get started, you’ll need to have the MonsterInsights plugin installed and authenticated with Google Analytics.
- Google Analytics will need to be installed on the other domain for cross-domain tracking. Additionally, the other Analytics profile needs to be the same UA code.
Adding Your Other Sites for Cross-Domain Tracking
Step 1: To add your other sites for cross-domain tracking, navigate to Insights » Settings » Engagement, and navigate down to Cross-Domain Tracking. Then, click the button to add a domain.
Step 2: Add the domain for your other site.
Step 3: Then, click Save Changes.
Please note, that you’ll want to avoid including the domain MonsterInsights itself is installed on in this.
In other words, if the site MonsterInsights is installed on is yourdomain.com, you can include example-1.com in the cross-domain tracking but don’t include yourdomain.com.
Verify Your Source Code for Cross-Domain Tracking
If you want to test whether cross tracking is implemented correctly, you just need to look at the source code of your site.
If you can find the custom tracking code in your Google Analytics source code, you’ve successfully implemented cross tracking on your site.
Add Both Domains to the Domain Referral Exclusion List in Google Analytics
Step 1: Navigate to analytics.google.com » Admin » Property Settings » Tracking Info » Referral Exclusion List.
Step 2: Click + Add Referral Exclusion.
Step 3: Add your domain. (Excluding any subdomains.)
Common Mistakes with Cross-Domain Tracking
A common mistake we see with cross-domain tracking is when customers add the URL of the site the code is installed on as a cross-domain site.
For instance, if your site is example.com, and you include example.com as a site in the cross-domain tracking area, this will cause tracking issues in Google Analytics.
If you’re having issues with your cross-domain tracking, be sure to verify that this is not the case first.
That’s it! Now you know how to properly set up cross-domain tracking. Are you interested in tracking your form conversions? Then please see our guide: How to View Your Form Conversion Stats in MonsterInsights.