Implementing the cookie consent banner and cookie declaration

Script 1: The cookie consent banner

Log in to your 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 our automatic cookie blocking. Replace the red higlighted code with your own code which you will find in 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 specific page and at the exact position where you would like the Cookie Declaration to appear. This could be as a separate page on your website or embedded into an existing privacy policy. The standard 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 e.g. GDPR. Replace the red higlighted code with your own code which you will find in the Cookiebot manager.

<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>

To round off, when the website scan is complete, check your scan report. If there are any unclassified cookies, log in to your account and under “Cookies” make sure to classify them and add a short purpose description. This classification helps ensure that all cookies and trackers on your website (except for ‘strictly necessary’ cookies) will automatically be blocked until a user has given consent. Only those categories of cookies the user has consented to will be activated upon consent – all other cookies will be held back automatically.

Was this article helpful?
0.5 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 100%
How can we improve this article?
Inhoud