> For the complete documentation index, see [llms.txt](https://server-side.docs.sirdata.net/sirdata-server-side/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://server-side.docs.sirdata.net/sirdata-server-side/f.a.q-server-side/google-analytics-4/configuration-ga4.md).

# Configuration GA4

{% hint style="danger" %}
Attention ! Sirdata propose une prestation complète pour le paramétrage et la configuration de vos clients Google Analytics 4 (GA4) et Google Tag Manager (GTM), ainsi que vos balises GA4 et Facebook Conversions API (CAPI). \
\
Si vous ne maîtrisez pas totalement le sujet du serveur side et de son paramétrage, n'hésitez pas à [nous contacter](https://www.sirdata.com/fr/Contact).
{% endhint %}

## 1) Création et configuration des "Clients" dans votre conteneur serveur

### a) Client "GA4"

Lors de la création de votre conteneur serveur, un client GA4 est déjà créé par défaut :&#x20;

<figure><img src="/files/HyENR31BHQBFBDU7exg0" alt=""><figcaption><p>Client "GA4"</p></figcaption></figure>

Vous devez d'abord paramétrer ce client GA4 et ajouter votre ID de mesure GA4.&#x20;

### b) Client "GTM"

Ajoutez et paramétrez le client "GTM". Il faut également ajouter votre ID de conteneur client :&#x20;

<figure><img src="/files/rRIslvKjS3V2dDpwUXvT" alt=""><figcaption><p>Client "GTM"</p></figcaption></figure>

## 2) Création de la balise GA4 dans votre conteneur serveur&#x20;

### a) Balise GA4

Ajoutez la balise "Google Analytics : GA4"

<figure><img src="/files/1wtXB7NSuhvHdA7yGvOH" alt=""><figcaption><p>balise "Google Analytics : GA4"</p></figcaption></figure>

### b) Déclencheur "ClientNameGA4"

Ajoutez un déclencheur de type "Personnalisé" :&#x20;

<figure><img src="/files/NoJ2RjcssAlPcoZrL9OE" alt=""><figcaption><p>déclencheur "ClientNameGA4"</p></figcaption></figure>

Dans ce déclencheur, ajoutez une nouvelle variable : "ClientName" de type "Nom du client" :&#x20;

<figure><img src="/files/iiFUNgRp6bxkFK5vEzBB" alt=""><figcaption><p>Variable "ClientName"</p></figcaption></figure>

Puis, ajoutez la condition que la variable "ClientName" soit égale à "GA4" dans votre déclencheur "ClientNameGA4" : &#x20;

<figure><img src="/files/jT9qbybbv2TVtnUY0J8A" alt=""><figcaption><p>Déclencheur "ClientNameGA4" avec la variable "ClientName" est égal(e) à GA4</p></figcaption></figure>

## 3) Configuration de la balise GA4 dans votre conteneur "client"

Ajoutez le paramètre de configuration "server\_container\_url" à votre balise Google GA4, en lui attribuant comme valeur l'URL de votre sous-domaine (host). Par exemple : <https://xyxxy.urldemonsite.fr&#x20>;

<figure><img src="/files/ls2ne5AellH65pGH8JZW" alt=""><figcaption><p>Paramètre de configuration "server_container_url" </p></figcaption></figure>


---

# 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://server-side.docs.sirdata.net/sirdata-server-side/f.a.q-server-side/google-analytics-4/configuration-ga4.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.
