How to Set Up Cookiebot with Consent Mode v2 Using Google Tag Manager

Cookiebot tutorial with GTM (Google Tag Manager)

This tutorial covers how to add a cookie consent banner to your website using Cookiebot and configure your tags in Google Tag Manager to work with Consent Mode v2. Once you've completed all the steps, your Google Analytics and Google Ads tags will collect data based on people's consent choices, and any third-party tags will be configured to fire only when the appropriate consent has been granted.

What This Tutorial Covers

You'll start by creating a Cookiebot account, adding your domain, and customizing your consent banner. From there, you'll copy your Domain Group ID and use it to add Cookiebot to Google Tag Manager via the Community Template Gallery.

Once Cookiebot is in place, the tutorial covers how to enable Consent Overview in GTM and use it to review every tag in your container. Tags from Google's platforms, like the Google tag for Google Analytics and Google Ads, have built-in consent support and just need to be acknowledged. Third-party tags like LinkedIn Insight and Meta Pixel don't have built-in consent, so you'll need to add the required consent types and update their triggers to fire only after consent is granted.

A Note on Ongoing Maintenance

One thing worth keeping in mind – whenever you add a new tag to Google Tag Manager, you should open the 'Consent Overview' and configure its consent settings. This applies to any tag, but it's especially important for third-party tags that don't include built-in consent support.