Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

eu_cookie_compliance

69,512 sites Security covered
View on drupal.org

Help maintain this project

If you're interested in supporting or improving this module, please consider joining the #eu_cookie_compliance channel on Drupal Slack. While a maintainer may not always be able to respond quickly, others in the community might be able to offer help.
Please also consider joining the #drupal-cms-privacy channel for more discussion around klaro and privacy areas.

Overview

For Drupal 7 and 10+, this module continues to be maintained. The Klaro Consent Management module is also available and used in the new Drupal CMS. We welcome contributors to help resolve the remaining bugs in this module, and those interested in Klaro are encouraged to join the Klaro issue queue to support improvements in consent handling across Drupal.

If you're on Drupal 8, 9 or 10 prior to 10.2, you should consider upgrading to a Drupal version that supports Klaro. If you, for some reason, can't upgrade to Drupal 10 or beyond, and run into a showstopper bug in this module, please consider volunteering as a maintainer of this module.

History/Usage

This module addresses the General Data Protection Regulation (GDPR) that came into effect 25th May 2018, and the EU Directive on Privacy and Electronic Communications from 2012. It provides a GDPR cookie banner where you can gather consent from the user when the website stores cookies on their computer or otherwise handles their personal information.

The module offers several methods for getting consent: Consent by default, opt-in and opt-out. It's also possible to only display the banner for visitors from the EU.

Important: This module can only prevent cookies from being set on the current site. External JavaScripts will still be able to set cookies.

Developers

If you want to conditionally set cookies in your module, there is a javascript function provided that returns TRUE if the user has given his consent:

Drupal.eu_cookie_compliance.hasAgreed() where category is optional.

Here is another example showing how to set cookies after the user clicks the accept button: http://drupal.org/node/1624876#comment-6111688

Additional features

EU Cookie Compliance GTM provides functionality for Google Tag Manager.

Icon by Nico Grienauer (Grienauer)

This module was originally scoped and delivered by Marcin Pajdzik for Turner Broadcasting Systems / Warner Media

Activity

Total releases
6
First release
May 2025
Latest release
5 months ago
Release cadence
32 days
Stability
67% stable

Release Timeline

Releases

Version Type Release date
8.x-1.30-rc2 Pre-release Nov 2, 2025
8.x-1.3-rc1 Pre-release Oct 31, 2025
8.x-1.29 Stable Oct 17, 2025
8.x-1.28 Stable Jul 24, 2025
8.x-1.27 Stable Jun 25, 2025
8.x-1.26 Stable May 28, 2025