> For the complete documentation index, see [llms.txt](https://docs.adpage.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.adpage.io/optimize-your-setup/consent-management/add-cookiebot-to-gtm.md).

# Add Cookiebot to GTM

This guide explains step by step how to integrate the Cookiebot template into your Google Tag Manager web container, so your website complies with privacy regulations and visitors give proper consent for cookie use.

{% stepper %}
{% step %}

#### Open your GTM web container

Go to **Templates** and click **Search Gallery** under Tag Templates. Use the search function to find the Cookiebot template, then add it to your workspace.

<figure><img src="https://1274044937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA65KwL1NwewlJbtCXsXd%2Fuploads%2F4vQVUTUXN5QQp1Rgz1Mb%2Fimage.png?alt=media&amp;token=01ac4f54-48b4-4cfe-a852-daebca8e6801" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Create the Cookiebot CMP tag

Go to **Tags** and create a new tag. As the tag configuration, choose **Cookiebot CMP**.
{% endstep %}

{% step %}

#### Enter your Cookiebot ID

In the **Cookiebot ID** field, enter your Cookiebot ID. You can find this by copying the Domain Group ID from the **Your Scripts** tab in your Cookiebot account.
{% endstep %}

{% step %}

#### Configure language and region

For **Language**, let Cookiebot determine it automatically, or set it via a GTM variable so you control which language is shown and when. Specify the **CDN Region** where Cookiebot is active — EU or COM. For sites active in Europe, choose .eu.

<figure><img src="https://1274044937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA65KwL1NwewlJbtCXsXd%2Fuploads%2FtuXc2CzteaJEVAx4ZKpR%2Fimage.png?alt=media&amp;token=19fcb50b-2d97-4486-ac0d-8acfb0357c1b" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Set the default consent state (optional)

If you want to adjust the **Default Consent State** (everything denied for new visitors), create a new Region and enter the default consent a new user has before they accept or reject cookies.
{% endstep %}

{% step %}

#### Set the trigger and save

As the trigger, choose **Consent Initialisation** and save the tag.
{% endstep %}
{% endstepper %}

Next, make sure your consent overview settings are configured correctly within Google Tag Manager. Follow [the 'Consent Management' article](/optimize-your-setup/consent-management.md) for these settings.

Since you don't want to measure events before the visitor has given consent, you'll also need to adjust the triggers of specific tags, such as the page\_view event tags, see [the 'Trigger sequence for consent processing' article](/optimize-your-setup/consent-management/trigger-sequence-for-consent-processing.md) to learn how to set this up.


---

# 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://docs.adpage.io/optimize-your-setup/consent-management/add-cookiebot-to-gtm.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.
