Switch from manual to automatic cookie blocking mode

This guide will show you how to enable the automatic cookie-control on a website that already uses Cookiebot with manual implementation of prior consent.

The script which is currently inserted in the header of the website to display the cookie banner looks like this: 

<script id="CookieConsent" src="https://consent.cookiebot.com/uc.js" data-cbid="00000000-0000-0000-0000-000000000000" type="text/javascript" async></script>

To enable the automatic cookie-control, the script needs a bit of editing: Remove the async attribute and add a data-blockingmode=”auto” attribute so that the script looks like this: 

<script id="CookieConsent" src="https://consent.cookiebot.com/uc.js" data-cbid="00000000-0000-0000-0000-000000000000" type="text/javascript" data-blockingmode="auto"></script> 

The zeroes are replaced with the cbid-number from the relevant domain group on your Cookiebot account (“Your scripts” tab under “Settings” menu point). Then, if this is not already the case, make sure that the script is placed as the very first script on the website. Cookies will now be blocked prior to consent and controlled automatically based on what the website user has consented to. 

30 day free trial Cookiebot

Cookie scanner, cookie banner, cookie declaration en cookie consent in one solution.

  • Use cookies on your website compliant with GDPR, ePrivacy and cookie legislation
  • Cookie management completely automated
  • Cookie banner based on your corporate identity
  • Automatic composed cookie declaration, always up to date

The Cookiebot solution runs on 500,000+ websites, manages 13 billion User Consents and supports 40+ languages.