Cross-domain tracking with the _gl parameter (Google Analytics 4)

When a user moves from one domain to another (e.g. from your site to Yoplanning), Google Analytics may lose the traffic source unless cross-domain tracking is properly configured.


🚀 Good news: Yoplanning is compatible with this system!

Our booking module now supports the _gl parameter, used by Google Analytics 4 to ensure correct attribution even across domain changes.


✅ What Yoplanning manages automatically

  • Passing the _gl parameter in incoming URLs to the module

  • Reading and processing the _gl parameter via GTM in the module

  • No configuration required on the Yoplanning side if your GTM ID is correctly entered in your reservation module


🔧 What you need to do on the client side

1. Add Yoplanning as a linked domain in GA4

Go to: Admin → Data Feeds → Tag Settings → Configure Domains

Add the following domain:

booking.yoplanning.pro

2. (Optional) Configure the GA4 tag in Google Tag Manager

If you are using GTM:

  • In the GA4 configuration tag, enable cross-domain tracking

  • Add booking.yoplanning.pro to the list of related domains

  • Enable the option to automatically pass the _gl parameter on links


🧪 How to test?

  1. Open your site from a known source (e.g. from a Google search)

  2. Click on the link that leads to your YoPlanning module

  3. Check in Google Analytics that the session keeps the original source (and does not show as (direct) / (none))


🔁 Complementarity with UTM parameters

The _gl parameter ensures cross-domain session continuity, while UTM parameters allow for manual marketing attribution.

For optimal attribution, use both together:

  • _gl: automatic session tracking

  • utm_source, utm_medium, etc.: tagging your marketing campaigns

Last updated