# Consent Domain

#### Definition

A Consent Domain is used by a Consent Management Platform (CMP) to:

* Host cookies and user consent preferences;
* Isolate these cookies from the rest of the site (often for compliance and security reasons);
* Centralize consent management for multiple sites or subdomains belonging to the same organization.

Accessing the feature – *This feature can be activated upon request.* In the side menu, click on “Consent Domains.”

<figure><img src="/files/yjojctY37MI9taVlxZuC" alt=""><figcaption></figcaption></figure>

***

#### Creating a Consent Domain

To create a consent domain, click the button to create a new domain. The form consists of Step 1, where you must enter the domain name.

<figure><img src="/files/X8Dpqgu45opDNzSO69f1" alt=""><figcaption></figcaption></figure>

Step 2 involves installing the domain on the client’s hosting provider. This step can be closed and returned to later. To display the installation modal, click either on the status or the settings icon.

To install the domain, you must:

1. Add the TXT record to the site's DNS settings.
2. Add the CNAME record to the site's DNS settings.
3. Click “Verify DNS.”

<figure><img src="/files/odMdpCSqMbAXxrKj8Aqx" alt=""><figcaption></figcaption></figure>

> Note: CNAME verification can take anywhere from 5 minutes to several hours.

***

#### Editing / Deleting a Consent Domain

Consent domains cannot be edited. You can only verify DNS records or delete the domain.

To delete, click the trash icon and confirm the deletion.

***

#### Creating a Site Group

Site groups contain the domains and subdomains where the consent domain will be active. These will be displayed on the final CMP. Make sure to enter both [www.domain.com](https://www.domain.com) AND domain.com for each domain.

<figure><img src="/files/9pkBuLKUTK71zbwbzgnX" alt=""><figcaption></figcaption></figure>

***

#### How to use a Consent Domain on a CMP

On the Code Retrieval page:

Select the desired consent domain for the CMP. The script will automatically update with this new domain; the client must then copy/paste the new script onto their site.

<figure><img src="/files/tcYlVjbKS8W0os7OcpNt" alt=""><figcaption></figcaption></figure>

In the Sirdata GTM template:

<figure><img src="/files/QDVKGwwUYqcTK6S8hdjm" alt=""><figcaption></figcaption></figure>

> Warning: This field is not persistent. If you select a custom consent domain, leave the page, and return to it, the domain will no longer be selected.

***

Would you like me to adjust the terminology to match a specific technical documentation style (e.g., more formal or more developer-oriented)?


---

# Agent Instructions: 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:

```
GET https://cmp.docs.sirdata.net/en/advanced-features/consent-domain.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
