NOTE: All schools that use a custom domain and Google Analytics need to configure cross-domain tracking to prevent duplicate data from being sent to GA4.
To ensure accurate and reliable data collection and analysis in Google Analytics 4 (GA4) when your website spans across multiple domains, it is essential to configure cross-domain tracking.
This feature allows GA4 to seamlessly track user interactions as they navigate between different domains or subdomains within your website.
If you use a custom domain and the Teachable checkout page is under the sso.teachable domain, you need to set up this feature.
Without cross-domain tracking, user activity might be recorded as separate sessions on each domain, leading to incomplete and inaccurate data. This could result in overestimating user metrics like unique visitors and cause discrepancies in the attribution of conversions and interactions.
Why cross-domain tracking?
Configuring cross-domain tracking links user activities from one domain to another, creating a continuous and comprehensive view of the user journey. This ensures that GA4 treats the interactions as part of the same session, preventing data duplication and providing a more accurate representation of user behavior and website performance.
How to set up cross-domain tracking in GA4
First ensure that GA4 is already installed. Once you have confirmed that GA4 is installed on your website, proceed to the steps below.
Sign in to your Google Analytics account at analytics.google.com.
Click on "Admin" in the lower-left corner.
In the "Property" column, click on "Data Streams."
Select "All" as the property type and chose the “data stream”
Click on “Configure tag settings“
Click on "Configure your domains" to add custom domains
Add 2 conditions with the domain info using the match type “Contains“:
1 - Fill the first one with the domain “teachable.com”;
2 - Add your own domain to the second condition;
Once you have completed these steps, you have set up cross-domain tracking that will prevent duplicate data from being sent to GA4.