> 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/events-reference/campaign-analytics-module-events.md). Agents can also search and read this documentation through its [MCP server](https://doc.commandersact.com/~gitbook/mcp).

# Événements Campaign Tracking

## ad\_view

Cet événement est associé à l’affichage de votre publicité. Il peut être utilisé pour suivre le point de contact « impressions » dans le module Campaign Analytics.

## ad\_click

Cet événement est associé au clic d’une personne sur votre publicité. Il peut être utilisé pour suivre le point de contact « clics » dans le module Campaign Analytics.

#### Paramètres <a href="#parameters_35" id="parameters_35"></a>

<table><thead><tr><th width="161">Nom</th><th width="100">Type</th><th width="85">Obligatoire</th><th width="153">Exemple de valeur</th><th>Description</th></tr></thead><tbody><tr><td><code>ad_cost_id</code></td><td><code>string</code></td><td>Non</td><td>1254965</td><td>remplacez le <code>tclid</code> de MixCommander</td></tr><tr><td><code>user</code></td><td><a href="#user"><code>Object&#x3C;User></code></a></td><td>Oui</td><td><p><code>{</code><br><code>id: '12345',</code><br><code>email: 'toto@domain.fr',</code></p><p><code>consent_categories: [1,3]</code></p><p><code>}</code></p></td><td><p><code>consent_categories</code> correspond à la liste des consentements de l’utilisateur. Elle est automatiquement renseignée à partir des sources web si vous utilisez la CMP Commanders Act.</p><p>Vous devez également ajouter toutes les propriétés de l'utilisateur dans cet objet, notamment les clés de rapprochement (ID, e-mail).</p></td></tr><tr><td><code>ad_format</code></td><td><code>string</code></td><td>Non</td><td>image</td><td>Type/format de publicité</td></tr><tr><td><code>campaign</code></td><td><code>string</code></td><td>Non</td><td>my_campaign</td><td>nom de la campagne</td></tr><tr><td><code>keyword</code></td><td><code>string</code></td><td>Non</td><td>t-shirt</td><td>mots-clés de la campagne</td></tr><tr><td><code>medium</code></td><td><code>string</code></td><td>Oui</td><td>seo</td><td>support du point de contact</td></tr><tr><td><code>source</code></td><td><code>string</code></td><td>Oui</td><td>my_source</td><td>source du point de contact</td></tr></tbody></table>

**Exemple**

{% tabs %}
{% tab title="JavaScript" %}

```javascript
cact('trigger','ad_click', { /*ou ad_view*/
    "medium": "seo",
    "campaign": "my_campaign",
    "source": "my_source",
    "keyword": "t-shirt",
    "ad_format": "image"
}
  user: {
    id: '12356',
    email:'toto@domain.fr',
    consent_categories: [1,3]
  }
});
```

{% endtab %}
{% endtabs %}

## page\_view et purchase

Pour créer des points de contact « sites » et « commandes », vous pouvez utiliser les événements suivants :

* 'page\_view' pour créer un point de contact « sites »
* 'purchase' pour créer un point de contact « commandes »


---

# 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/events-reference/campaign-analytics-module-events.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.
