Cookiebot integrates with Google Consent Mode. Don't have a Cookiebot account yet? Sign up for your free trial today to take advantage of our powerful integration!
With Cookiebot's integration to the Google Consent Mode you can respect the privacy choices of end users with minimal impact on your website's ad-based revenue stream, analytics and more.
If you're already using Google gtag.js or Google Tag Manager (GTM) on your website, we recommend that you add the Google Consent Mode integration to your website, to ensure you get the best use of your Google Services.
Once you have implemented the integration on your website, Cookiebot will automatically signal the consent choices of your visitors to Google instead of blocking tags when not consented. The end user's granular consent will be used by Google to adjust tag behaviour accordingly.
With the Google Consent Mode and the Cookiebot integration in place, Cookiebot will allow tags to run and Google will act to e.g. re-marketing and log analytics data according to the signal sent by Cookiebot.
Google describes the technical details of how supported tags changes behaviour based on the end user's consent here: https://support.google.com/analytics/answer/9976101
The Google Consent Mode is an API that Cookiebot integrates with. When you have installed the Cookiebot tag directly on your site, you can enable the Google Consent API-integration by adding the following code snippet to your website template, above the gtag.js or GTM code itself:
Make sure to add the above code before your gtag.js or GTM code snippet, and if you've chosen to rename the dataLayer, ensure that you change
window.dataLayer to the actual name of the dataLayer.
For best results ensure that scripts are loaded in the following order:
- Consent Mode
- Cookiebot CMP
- Google Tag Manager / gtag
You may change the values of the 5 default consent types like ad_storage and analytics_storage to 'granted' and set ads_data_redaction to 'false' if you want to default to an opt-in before the end user has submitted consent, for example allowing for a default opt-in under CCPA.
If you are using Cookiebot with Google Tag Manager today, you must remove any applied cookie consent triggers from tags that support Consent Mode (such as Google Ads, Analytics, Floodlight and Conversion Linker) and add a different trigger like "All pages".
Please reach out to us with any Google Consent Mode related questions on email@example.com
To read more about Cookiebot and the Google Consent Mode and how this integration could help you get more our of your website, please see our blog post here.