Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module helps websites comply with GDPR and EU privacy directives by providing a cookie banner. It allows users to give consent for cookies and personal data handling, with options for opt-in, opt-out, or default consent, and can be configured to only show the banner to EU visitors.

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
8 months ago
Releases (12 mo)
4 ▲ from 2
Maintenance
Slowing

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