How to set up a GDPR compliant cookie banner?

In this article, you'll learn how to set up a GDPR-compliant cookie banner.

What you'll need:

First, you need to create an account at Cookiebot: https://manage.cookiebot.com/en/login.

Note: Cookiebot's free plan only allows you to add one domain name.

  1. In the "Domains" tab (number 1 in the image), click the green "+" button to add your domain name. (number 2 in the image)

  1. Go to the "Banner" tab to customize the look and behavior of your cookie banner. Here, you’ll select preferences and configure the "Cookies consent method" to be used on your website. (number 3 in the image)

  1. In the "Privacy Trigger" tab, you can enable the Privacy Trigger, which will appear on all pages of your website and allow visitors to view and manage their consent status. You can also configure its position and theme. (numbers 4 and 5 in the image)

  1. The "Declaration" tab is available only for paid users (number 6 in the image). It allows you to automatically display detailed cookie information.

  1. In the "Content" tab, you can describe the general purpose of your site’s cookie use. (number 7 in the image)

Notes:

- Keep descriptions clear, concise, and engaging.

- Free plan users can only enter descriptions in one language (English).

- Paid plan users can:

  • Add multiple languages.
  • Enable automatic language detection to display the banner in the visitor's language.

  1. In the final tab, "Your scripts", you’ll find two code snippets (number 8 in the image):
  • The first script must be added to your site’s header. (numbers 9 and 10 in the image)
  • The second script must be added as an HTML element on the specific page where you want the cookie declaration to appear. (number 11 and 12 in the image)

Importants :

  1. This solution also works for a blog. Simply add the header script to the "Blog layout" page, and the banner will be applied to all blog posts and pages automatically.
  2. The site suggested on this page is an example of a site you can use, there are many other sites you can use to set up a cookie banner, they work the same way.
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.