Cross-Domain Tracking with Google Analytics

 

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.

Overview

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.

  1. Sign in to your Google Analytics account at analytics.google.com.

  2. Click on "Admin" in the lower-left corner.
    e80fb89b-9c1e-43e2-b527-89877665268e.png

  3. In the "Property" column, click on "Data Streams."

  4. Select "All" as the property type and chose the “data stream

  5. Click on “Configure tag settings
    6c4c5919-7fa6-4103-ad65-3bb7f6bfd0be.png

  6. Click on "Configure your domains" to add custom domains
    e7396bd8-9a68-4009-8840-14425dea2b38.png

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

    1c810924-40ca-4330-95b7-064e9165ddc8.png

Once you have completed these steps, you have set up cross-domain tracking that will prevent duplicate data from being sent to GA4.

Was this article helpful?

3 out of 4 found this helpful