User consent management module for Drupal.
The module enables existing third-party-integration modules continued to be used in compliance with the GDPR (of course without manipulating their code). It solves the basic problem that when using third-party-integration modules, the user must agree to the use of cookies (according to GDPR) before they are installed.
IMPORTANT: No liability is assumed regarding compliance with the GDPR.
The COOKiES module provides (in conjunction with Cookies JSR) a fully configurable user interface for user decisions. It also supports out-of-the-box key third-party integration modules for:
- Asset Injector
- Google Analytics module [DEPRECATED support in 2.x]
- Google Tag Manager
- IVW Integration <2.4
- reCAPTCHA
- Matomo Analytics
- eTracker Analytics
- Video embed with oembed from core:media module (recommended) or Video Embed Field (iframe, not recom.)
- Twitter media module
- Instagram media module
- Meta Pixel (Facebook Pixel)
2.x release
- Uses new cookiesjsr 2.x library completely rebuilt using Svelte. Only ~36 kb in size.
- Deprecates "COOKiES Google Analytics" (cookies_ga) in favor of "COOKiES Google Tag Manager (cookies_gtag).
Features
1. Full responsive design.
2. Full translatable by Drupal UI
3. Full accessibility
4. Customizable styling.
4.1. Light: Use CSS-vars to customize colors and some params as described here.
4.2. Heavy: Disable original CSS in the config and start to customize from scatch - or with original SCSS download here)
Installation
1. Require the module via composer require 'drupal/cookies'
. This will automatically require the jfeltkamp/cookiesjsr
library as well.
2. Add the "COOKiES UI" block in the block configuration at Admin>Structure>Blocks (/admin/structure/block
). Simply place the block anywhere.
3. Activate submodules for third party module support (e.g. cookies_gtag to support Google Tag Manager).
Configuration
1. Configure the COOKiES module under Admin>Config>System>COOKiES (/admin/config/cookies/config
)
2. Users may want to change their cookie preferences. For this reason, a "Cookies settings" link in the tools menu is created. Move the link to the menu, where you want to place it. (You can create a custom Link very easy with <a href="#editCookieSettings">cookies</a>
)
3. You can also add a "Cookies Documentation" block at Admin>Structure>Blocks (/admin/structure/block
). This block will display the cookie documentation of each cookies service provided (which can be changed manually).
Important Note
For reasons of performance and in order not to influence the first impression of the page with the cookie banner, a scroll limit is set by default. If your website is not scrollable or your homepage is very short, you should set the sroll limit to zero so that the banner loads immediately.
Other third party modules / submodules
- COOKiES Module Handler: covers the handling of Javascript (disable/enable depending on users consent)
- COOKiES Filter (Submodule): Covers the handling of 3rd party code snippets pasted to the text editor.
- COOKiES Etracker (Submodule of etracker):COOKiES compatibility with etracker
- COOKiES Posthog (Submodule of posthog):COOKiES compatibility with posthog
Possible alternatives
- https://www.drupal.org/project/klaro (favourite)
- https://www.drupal.org/project/eu_cookie_compliance
- https://www.drupal.org/project/tacjs
- https://www.drupal.org/project/simple_klaro
- https://www.drupal.org/project/cookieconsent
- https://www.drupal.org/project/cookie_content_blocker
- https://www.drupal.org/project/usercentrics_cmp
- https://www.drupal.org/project/cookiebot
- https://www.drupal.org/project/cookiebot_gtm
- https://www.drupal.org/project/cookie_script
Project information
- Module categories: Access control, Content display, E-commerce
- 11,288 sites report using this module
- Created by jfeltkamp on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Uses new cookiesjsr 2.x built in Svelte. Only ~36 kb in size. 🤏📦
Development version: 2.x-dev updated 11 Dec 2024 at 11:23 UTC