> For the complete documentation index, see [llms.txt](https://doc.commandersact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.commandersact.com/fr/developpeurs/tracking-and-integrations/tracking/about-events/js-sdk-event-specificity.md).

# Spécificité des événements Web

## Champs ajoutés automatiquement à l'événement

Le [JS SDK](/fr/fonctionnalites/sources/sources-catalog/web/js-sdk.md), [Conteneur Web](/fr/fonctionnalites/sources/sources-catalog/web/containers.md) et [Pont GTM](/fr/fonctionnalites/sources/sources-catalog/web/gtm.md) ajoute automatiquement des propriétés spécifiques dans l'événement concernant le navigateur.\
Voici un exemple complet de payload d'événement :

```json
{
   "event_name": "search",
   "search_term": "t-shirts",
   "url": "https://www.mywebsite.com/path1/path2/", //Ajouté automatiquement s'il manque
   "path": "/path1/path2/", //Ajouté automatiquement
   "referrer": "https:///www.google.fr", //Ajouté automatiquement
   "title": "My page title", //Ajouté automatiquement s'il manque
   "user": {
      "id": "12345",
      "consistent_anonymous_id": "567892" //Ajouté automatiquement
      "email": "toto@domain.fr",
      "consent_categories": ["1","3"] //Ajouté automatiquement si vous utilisez Commanders Act CMP
   },
   "context": {
      "event_id": "202110130000000000", //Ajouté automatiquement
      "generatorVersion": "10.0", //Ajouté automatiquement
      "containerVersion": "3.1", //Ajouté automatiquement
      "event_timestamp": "1639044446636", //Ajouté automatiquement
      "page": { //Ajouté automatiquement
         "title": "Search page", //Ajouté automatiquement
         "url": "https://shop.com/search?q=...", //Ajouté automatiquement
         "lang": "en", //Ajouté automatiquement
         "referrer": "https:///www.google.fr", //Ajouté automatiquement
         "viewport": { //Ajouté automatiquement
            "width": 320, //Ajouté automatiquement
            "height": 568 //Ajouté automatiquement
         }
      },
      "device": { //Ajouté automatiquement
         "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36",//Ajouté automatiquement
         "ip": "102.3.4.56",//Copié automatiquement depuis l'en-tête de la requête
         "lang": "fr",//Ajouté automatiquement
         "cookie": "_fbp=123; _fbc=456; _ga=789",//Ajouté automatiquement
         "timezone": "Europe/Paris"//Ajouté automatiquement
      }
   }
}
```

## Champs ajoutés automatiquement

<table><thead><tr><th>Nom du champ</th><th>Valeur d'exemple</th><th>Description</th></tr></thead><tbody><tr><td>context.event_id</td><td><pre><code>202110130000000000
</code></pre></td><td>ID de l'événement</td></tr><tr><td>context.event_timestamp</td><td><pre><code>1639044446636
</code></pre></td><td>Horodatage de l'heure d'envoi de l'événement.</td></tr><tr><td>context.device.user_agent</td><td>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36</td><td>L'agent utilisateur du navigateur</td></tr><tr><td>context.device.lang</td><td>fr</td><td>Langue du navigateur</td></tr><tr><td>path</td><td>/path1/path2/</td><td>Chemin de l'URL courante (uniquement sur page_view)</td></tr><tr><td>referrer</td><td><a href="https://www.google.fr">https:///www.google.fr</a></td><td>URL de référence (uniquement sur page_view)</td></tr><tr><td>title</td><td>My page title</td><td>Titre de la page courante (uniquement sur page_view)</td></tr><tr><td>url</td><td><a href="https://www.google.fr">https:///www.mywebsite.fr</a></td><td>URL de la page courante</td></tr><tr><td>page.*</td><td></td><td>informations sur les pages</td></tr></tbody></table>

{% hint style="info" %}
L'adresse IP n'est pas collectée par nos bibliothèques, mais est renseignée par nos serveurs lorsqu'il reçoit un message pour **uniquement pour les événements client-side**. Copiant l'en-tête de la requête contenant l'adresse IP.
{% endhint %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.commandersact.com/fr/developpeurs/tracking-and-integrations/tracking/about-events/js-sdk-event-specificity.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
