Code BLACKGO: cookie banner free for a year. Create an account →

Publications / Guides

Cookie banner in Drupal 10 and 11 – installation and settings

Installing the consetgo cookie banner in Drupal 10 and 11: the module in modules/custom, running before the page cache, settings after installation and a checklist.

Author: Robert.S Published: Updated: 3 min read

Cookie banner in Drupal 10 and 11 – installation and settings

In Drupal 10 and 11 you install the consetgo cookie banner as a module. It loads the consent module before the Drupal page cache, so script blocking also works on pages served from the cache. Analytics, pixels, maps and videos wait for the visitor’s consent; pages under /admin are not rewritten.

Requirements

Drupal 10 or 11.

Installation step by step

  1. Download the file consetgo-drupal.zip from your consetgo account and unpack it into the modules/custom folder.
  2. In Drupal go to Extend, tick “consetgo – Cookie Consent” and click Install.
  3. Go to Configuration → System → Cookie consent (consetgo) → Open the consent panel.

Full instructions: consetgo for Drupal.

Settings after installation

  1. In the Scanner tab enable scan mode and go through a few pages (different content types, views, forms).
  2. In the Services and categories tab check the assignments; assign unrecognised addresses in the Scanner tab (how to assign categories).
  3. In the Banner appearance tab set the design; in Cookie policy copy the table into your privacy policy.

What to watch out for in Drupal

  • Server cache and CDN. The Drupal cache does not get in the way, but a cache in front of Drupal (e.g. a reverse proxy, CDN) that serves pages without PHP bypasses the module. The panel then shows “limited mode”.
  • Modules with analytics. If GA4 or GTM is added by a Drupal module, keep it – consetgo handles it: in advanced Consent Mode the Google tags work until consent without cookies, and the other scripts are blocked until consent. Do not add the same code in the module panel.
  • JavaScript aggregation. Scripts that Drupal combines into one file come from your domain; external services (Google, Meta) load separately, from their own addresses – these are what the module blocks.

Checklist

  • Module enabled, the consent panel opens from Configuration → System.
  • In a private window the banner shows on the site pages (except /admin).
  • Before a decision and after refusal there are no requests to analytics and advertising services.
  • No “limited mode” message in the module panel.

Step-by-step test: How to check whether a site sets cookies before consent.

Questions and answers

Does blocking work on pages from the Drupal cache?

Yes. The Drupal module loads the consent module before the page cache, so pages served from the Drupal cache are processed too. It is different with a server cache or CDN that serves pages without PHP.

Does the banner appear in the administration area?

No. Pages under /admin are not rewritten.

Read also

How should a proper cookie banner work?

How should a proper cookie banner work?

Guides

The banner should offer a real choice, and the website should carry it out: a refusal that is easy to find, separate purposes, scripts blocked after refusal and a permanent link for changing the decision. A short checklist using GA4, Meta Pixel and GTM as examples.

· 3 min read

How to choose a cookie consent management tool – 8 criteria

How to choose a cookie consent management tool – 8 criteria

Guides

Eight questions worth asking before you choose a cookie consent tool: blocking before consent, Consent Mode v2, consent log, languages, CMS integration, where the data is stored, price and support. Plus: free or paid module.

· 6 min read