> For the complete documentation index, see [llms.txt](https://docs.yoplanning.support/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yoplanning.support/en/yoplanning-academy/yoplanning-parametrage/module-de-reservation/integration-du-module-de-reservation/doc-technique-agence-web/suivi-inter-domaines-avec-le-parametre-_gl-google-analytics-4.md).

# 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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.yoplanning.support/en/yoplanning-academy/yoplanning-parametrage/module-de-reservation/integration-du-module-de-reservation/doc-technique-agence-web/suivi-inter-domaines-avec-le-parametre-_gl-google-analytics-4.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
