This project is not covered by Drupal’s security advisory policy.

Cookie banner adapted to GDPR, CCPA and other regulations. Google Consent Mode v2 integration. Automatic cookie scanning and blocking. Free plan available. Setup in minutes.

This is the official Drupal module for CookieOfficer, a consent management platform (CMP). It connects your Drupal site to your CookieOfficer project. You need a CookieOfficer account: there is a free plan for smaller sites, and paid plans can be tested free for 14 days.

The module adds the CookieOfficer script at the very top of the head section on every page. The banner, the cookie scan, consent categories, languages and the consent log are managed in the CookieOfficer panel, so you change them there and the site picks them up without clearing the cache.

Features

  • Adds the CookieOfficer cookie banner to every page (not to administration pages and not to the Layout Builder editor).
  • Sets the Google Consent Mode v2 default state before Google tags (you can turn this off). Advanced options: denied or granted for each signal and wait_for_update.
  • Matches the banner language to the content language on multilingual sites (core Language module).
  • Checks the setup: loads your home page and tells you if the script is missing or runs after other scripts.
  • "Cookie declaration" block and a "Cookie settings" link: any link with the address #cookieofficer-settings, for example in a menu.
  • Works with the Content Security Policy module.
  • Drush: cookieofficer:connect, cookieofficer:status, cookieofficer:disconnect.

Managed in the CookieOfficer panel: banner look and texts in 30 languages, geo rules, the cookie scan and categories, the consent log with downloadable proof of consent, and consent analytics.

Requirements

Installation

  1. composer require drupal/cookieofficer and enable the module.
  2. Go to Configuration > System > CookieOfficer and paste your project ID.
  3. The banner appears on your site. Keep Google Consent Mode enabled in the CookieOfficer panel (it is on by default).

External service

This module connects to CookieOfficer, a service run by DataWolves. Without a CookieOfficer project the module adds nothing to your site. Visitors' browsers load the CookieOfficer script from https://cdn.cookieofficer.com; what is sent and when is described in the README. Terms of service · Privacy policy.

Project information

Releases