Drupal 8 and the EU Cookie Consent Law

Drupal 8 and the EU Cookie Consent Law

One of our OSTraining members asked how to add a cookie notification message to their Drupal 8 site.

We recommended the CookieConsent module which provides an easy solution to deal with the EU’s Cookie Law.

Adding a cookie notification is particularly useful if you want to do more with cookies. For example, it’s illegal to use SuperCookies without consent.

  • Install and enable the CookieConsent module.
  • Refresh the page and you should see a notice about the site using cookies has appeared in the bottom right-hand corner. It’s easy as that.
cookie warning in Drupal
  • You users can click the yellow “Got it!” button to make the notification disappear.


0 0 votes
Article Rating
Notify of

Newest Most Voted
Inline Feedbacks
View all comments
Abdallah Boodhun
Abdallah Boodhun
7 years ago

Hi i ve enabled the module but nothing happens after i refresh the page

Daniel Pickering
7 years ago

Hi Abdallah,
You have to actually logout to see the notification. If that doesn’t work are you using an add blocked? What version of Drupal are you using?


Sébastien Gicquel
Sébastien Gicquel
7 years ago

Thank you for the tip. It works like a charm. Really easy to configure. Previously, i have tested EU Cookie Compliance [url=https://www.drupal.org/project/eu_cookie_compliance)]https://www.drupal.org/proj…[/url] but i had some issues (some parameters weren’t saved like “open in new window” or “Clicking a link hides the thank you message automatically”)

7 years ago

We are glad that you like our tip and it is good to know that the tip works for other people and not just for us 🙂

3 years ago

Cookies refer to small files that get dropped automatically on your computer, whenever you browse the web. Cookies are harmless bits of texts that are locally stored and can be viewed and deleted quickly. However, they give a great deal of insight into a user’s activity and preferences. They tend to identify a user without explicit content.

Would love your thoughts, please comment.x