Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

1

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.

2

Create the Cookiebot CMP tag

Go to Tags and create a new tag. As the tag configuration, choose Cookiebot CMP.

3

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.

4

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.

5

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.

6

Set the trigger and save

As the trigger, choose Consent Initialisation and save the tag.

Next, make sure your consent overview settings are configured correctly within Google Tag Manager. Follow the 'Consent Management' article 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 to learn how to set this up.

Last updated

Was this helpful?