> For the complete documentation index, see [llms.txt](https://cmp.docs.sirdata.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cmp.docs.sirdata.net/fonctionnalites-avancees/domaine-de-consentement.md).

# Domaine de Consentement

## Définition <a href="#definition" id="definition"></a>

Un domaine de consentement (ou *consent domain*) est utilisé par une plateforme de gestion du consentement (CMP) pour :

* héberger les cookies et préférences de consentement des utilisateurs ;
* isoler ces cookies du reste du site (souvent pour des raisons de conformité et de sécurité) ;
* centraliser la gestion du consentement pour plusieurs sites ou sous-domaines appartenant à la même organisation.

\
**Accès à la fonctionnalité - Cette fonctionnalité peut-être activée sur demande**

Dans le side menu, cliquer sur “**Domaines de consentement**”.

<figure><img src="https://2240931758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-2584506019%2Fuploads%2FyMRN5YXbhNCsLw9dogq2%2Fimage.png?alt=media&amp;token=f1ff2f70-93d4-4692-9d59-00256ffb091a" alt=""><figcaption></figcaption></figure>

## Créer un domaine de consentement <a href="#creer-un-domaine-de-consentement" id="creer-un-domaine-de-consentement"></a>

Pour créer un domaine de consentement, cliquer sur le bouton de création d’un nouveau domaine.

Le formulaire se compose de l'étape 1 où il faut renseigner le nom de domaine

<figure><img src="https://2240931758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-2584506019%2Fuploads%2FQswFm0866GDVU5JqVDZP%2Fimage.png?alt=media&amp;token=96e5241b-fb55-42aa-a450-926f827a5c59" alt=""><figcaption></figcaption></figure>

<figure><img src="https://media-cdn.atlassian.com/file/acabc33f-86dc-4083-a74d-931bc01bac7e/image/cdn?allowAnimated=true&#x26;client=620a4196-e1a1-4db1-89d5-c38bef926545&#x26;collection=contentId-396460038&#x26;height=125&#x26;max-age=2592000&#x26;mode=full-fit&#x26;source=mediaCard&#x26;token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI2MjBhNDE5Ni1lMWExLTRkYjEtODlkNS1jMzhiZWY5MjY1NDUiLCJhY2Nlc3MiOnsidXJuOmZpbGVzdG9yZTpjb2xsZWN0aW9uOmNvbnRlbnRJZC0zOTY0NjAwMzgiOlsicmVhZCJdfSwiZXhwIjoxNzY2MDc3NzkyLCJuYmYiOjE3NjYwNzQ5MTIsImFhSWQiOiI3MTIwMjA6NTUyNjZkNDMtYmQ1MC00OTgxLWI5NzItYmVlMTgzNGRjOWIxIiwiaHR0cHM6Ly9pZC5hdGxhc3NpYW4uY29tL2FwcEFjY3JlZGl0ZWQiOmZhbHNlfQ.gOfTB4XGzHtB0sTGzvvhzViM8HZ5EDrHQl2XCmla6m0&#x26;width=760" alt=""><figcaption></figcaption></figure>

L'étape 2 est l’installation du domaine sur l’hébergeur du client. Cette étape peut être fermée et on peut revenir dessus par la suite. Pour afficher la modale d’installation il faut soit cliquer sur le statut soit cliquer sur l’icone setting.

<figure><img src="https://media-cdn.atlassian.com/file/3819ecea-2727-4eb2-8dab-63e9b9168c9a/image/cdn?allowAnimated=true&#x26;client=620a4196-e1a1-4db1-89d5-c38bef926545&#x26;collection=contentId-396460038&#x26;height=125&#x26;max-age=2592000&#x26;mode=full-fit&#x26;source=mediaCard&#x26;token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI2MjBhNDE5Ni1lMWExLTRkYjEtODlkNS1jMzhiZWY5MjY1NDUiLCJhY2Nlc3MiOnsidXJuOmZpbGVzdG9yZTpjb2xsZWN0aW9uOmNvbnRlbnRJZC0zOTY0NjAwMzgiOlsicmVhZCJdfSwiZXhwIjoxNzY2MDc3NzkyLCJuYmYiOjE3NjYwNzQ5MTIsImFhSWQiOiI3MTIwMjA6NTUyNjZkNDMtYmQ1MC00OTgxLWI5NzItYmVlMTgzNGRjOWIxIiwiaHR0cHM6Ly9pZC5hdGxhc3NpYW4uY29tL2FwcEFjY3JlZGl0ZWQiOmZhbHNlfQ.gOfTB4XGzHtB0sTGzvvhzViM8HZ5EDrHQl2XCmla6m0&#x26;width=760" alt=""><figcaption></figcaption></figure>

Pour installer le domaine il faut :

* Ajouter l’enregistrement TXT dans les paramètres DNS de l’hébergeur du site
* Ajouter l’enregistrement CNAME dans les paramètres DNS de l’hébergeur du site
* Cliquer sur “Vérifier les DNS”

  * La vérification du CNAME peut prendre entre 5min et plusieurs heures
  *

  ```
  <figure><img src="../.gitbook/assets/image (4).png" alt=""><figcaption></figcaption></figure>
  ```

<figure><img src="https://media-cdn.atlassian.com/file/d2b99878-7123-4720-9353-79bda919a4f4/image/cdn?allowAnimated=true&#x26;client=620a4196-e1a1-4db1-89d5-c38bef926545&#x26;collection=contentId-396460038&#x26;height=125&#x26;max-age=2592000&#x26;mode=full-fit&#x26;source=mediaCard&#x26;token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI2MjBhNDE5Ni1lMWExLTRkYjEtODlkNS1jMzhiZWY5MjY1NDUiLCJhY2Nlc3MiOnsidXJuOmZpbGVzdG9yZTpjb2xsZWN0aW9uOmNvbnRlbnRJZC0zOTY0NjAwMzgiOlsicmVhZCJdfSwiZXhwIjoxNzY2MDc3NzkyLCJuYmYiOjE3NjYwNzQ5MTIsImFhSWQiOiI3MTIwMjA6NTUyNjZkNDMtYmQ1MC00OTgxLWI5NzItYmVlMTgzNGRjOWIxIiwiaHR0cHM6Ly9pZC5hdGxhc3NpYW4uY29tL2FwcEFjY3JlZGl0ZWQiOmZhbHNlfQ.gOfTB4XGzHtB0sTGzvvhzViM8HZ5EDrHQl2XCmla6m0&#x26;width=760" alt=""><figcaption></figcaption></figure>

## Editer / supprimer un domaine de consentement <a href="#editer-supprimer-un-domaine-de-consentement" id="editer-supprimer-un-domaine-de-consentement"></a>

On ne peut pas éditer un domaine de consentement. On peut seulement vérifier les enregistrement DNS et supprimer.

<figure><img src="https://media-cdn.atlassian.com/file/02964a5a-0bf9-4e07-9221-39a518f71140/image/cdn?allowAnimated=true&#x26;client=620a4196-e1a1-4db1-89d5-c38bef926545&#x26;collection=contentId-396460038&#x26;height=125&#x26;max-age=2592000&#x26;mode=full-fit&#x26;source=mediaCard&#x26;token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI2MjBhNDE5Ni1lMWExLTRkYjEtODlkNS1jMzhiZWY5MjY1NDUiLCJhY2Nlc3MiOnsidXJuOmZpbGVzdG9yZTpjb2xsZWN0aW9uOmNvbnRlbnRJZC0zOTY0NjAwMzgiOlsicmVhZCJdfSwiZXhwIjoxNzY2MDc3NzkyLCJuYmYiOjE3NjYwNzQ5MTIsImFhSWQiOiI3MTIwMjA6NTUyNjZkNDMtYmQ1MC00OTgxLWI5NzItYmVlMTgzNGRjOWIxIiwiaHR0cHM6Ly9pZC5hdGxhc3NpYW4uY29tL2FwcEFjY3JlZGl0ZWQiOmZhbHNlfQ.gOfTB4XGzHtB0sTGzvvhzViM8HZ5EDrHQl2XCmla6m0&#x26;width=388" alt=""><figcaption></figcaption></figure>

Pour supprimer, il faut cliquer sur l’icone corbeille et valider la suppression.

## Créer un Groupe de site

Les groupes de sites prennent les domaines et sous domaines sur lesquels le domaine de consentement sera actif. Ils seront affiché sur la CMP finale. Pensez bien à renseigner le [www.domaine.com](http://www.domaine.com) ET le domaine.com pour chacun des domaines.

<figure><img src="https://2240931758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-2584506019%2Fuploads%2FX5ELt9fXVdlVGgyksLQd%2Fimage.png?alt=media&amp;token=b88c296e-3636-44e4-8484-025293f6f806" alt=""><figcaption></figcaption></figure>

## Comment utiliser un domaine de consentement sur une CMP ? <a href="#comment-utiliser-un-domaine-de-consentement-sur-une-cmp" id="comment-utiliser-un-domaine-de-consentement-sur-une-cmp"></a>

Sur la page de récupération du code,

<figure><img src="https://2240931758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-2584506019%2Fuploads%2FDUJhu1HKy0yuIGF5VzL6%2Fimage.png?alt=media&amp;token=415b476b-9acd-4462-8af5-ca5932c8df28" alt=""><figcaption></figcaption></figure>

Il faut sélectionner le domaine de consentement désiré sur la CMP. Le script se mets automatiquement à jour avec ce nouveau domaine et il faut que le client copie / colle le nouveau script sur son site.

Dans le template GTM de Sirdata:

<figure><img src="https://2240931758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-2584506019%2Fuploads%2FEZjDtSpfOf46nRSCQKij%2Fimage.png?alt=media&amp;token=a211924a-a724-459c-999e-84bbe8fc1d6b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://media-cdn.atlassian.com/file/b69a8086-3ab4-46ab-905e-909c5a42ad84/image/cdn?allowAnimated=true&#x26;client=620a4196-e1a1-4db1-89d5-c38bef926545&#x26;collection=contentId-396460038&#x26;height=125&#x26;max-age=2592000&#x26;mode=full-fit&#x26;source=mediaCard&#x26;token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI2MjBhNDE5Ni1lMWExLTRkYjEtODlkNS1jMzhiZWY5MjY1NDUiLCJhY2Nlc3MiOnsidXJuOmZpbGVzdG9yZTpjb2xsZWN0aW9uOmNvbnRlbnRJZC0zOTY0NjAwMzgiOlsicmVhZCJdfSwiZXhwIjoxNzY2MDc3NzkyLCJuYmYiOjE3NjYwNzQ5MTIsImFhSWQiOiI3MTIwMjA6NTUyNjZkNDMtYmQ1MC00OTgxLWI5NzItYmVlMTgzNGRjOWIxIiwiaHR0cHM6Ly9pZC5hdGxhc3NpYW4uY29tL2FwcEFjY3JlZGl0ZWQiOmZhbHNlfQ.gOfTB4XGzHtB0sTGzvvhzViM8HZ5EDrHQl2XCmla6m0&#x26;width=760" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Attention, ce champ n’est pas persistant. Si on sélectionne un domaine de consentement personnalisé, on quitte la page et on revient dessus, on n’aura plus le domaine sélectionné.
{% 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://cmp.docs.sirdata.net/fonctionnalites-avancees/domaine-de-consentement.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.
