Implementing the cookie consent banner and cookie declaration
If you use Google Tag Manager on your site, pleas follow the steps for script 1 in this article: Google Tag Manager and Cookiebot automatic cookie blocking
Log in to your Cookiebot account. Go to “Settings” and “Your scripts”.
Copy the top script and insert it as the very first script within the HEAD-tag of your website. Inserting it as the very first script ensures that no cookies or trackers escape the Cookiebot automatic cookie blocking mode. Replace the red higlighted code with your own code from the Cookiebot manager.
<html>
<head>
<script id="CookieConsent" src="https://consent.cookiebot.com/uc.js" data-cbid="00000000-0000-0000-0000-000000000000" type="text/javascript" data-blockingmode="auto"></script>
</head>
<body>
...
</body>
</html>
Script 2: The cookie declaration
Copy the second script and insert it in the HTML on the page where you want to display the cookie declaration. Paste it at the exact position where you would like the cookie to appear.
This could be as a separate page on your website or embedded for instance your existing privacy policy. The automaticaly generated cookie declaration lists all cookies and trackers discovered on your website and allows the user to withdraw (or change) a consent at any time – as required under GDPR.
Replace the red higlighted code with your own code from the Cookiebot manager in your account.
<html>
<head>
...
</head>
<body>
<h1>Cookie statement</h1>
<script id="CookiePolicy" src="https://consent.cookiebot.com/00000000-0000-0000-0000-000000000000/cd.js" type="text/javascript" async></script>
</body>
</html>
When the website scan is completed by the cookie scanner, check your scan report. If there are any unclassified cookies, log in to your Cookiebot account and navigate to “Cookies”.
Make sure to classify the unclassified cookies and add a short purpose description. This classification helps to ensure that all cookies and trackers on your website (except for ‘strictly necessary’ cookies) are automatically blocked until a user has given consent. Only the categories of cookies that the user has consented to will be activated upon consent – all other cookies will be blocked automatically.