Implementing the cookie consent banner and cookie declaration

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

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

14 day free trial Cookiebot

Cookie scanner, cookie banner, cookie declaration and 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 1.4 million websites, manages 5.2 billion monthly User Consents and supports 47+ languages.