Drupal
The module works on Drupal 10.3 and 11.
- Download the Drupal module and copy the
berrycookiefolder intoweb/modules/custom/(ormodules/custom/). - Extend, tick "BerryCookie – Cookie Consent" and click Install (or
drush en berrycookie). - Configuration → System → BerryCookie, paste the website key and click Save configuration.
- Use Check installation.
The script is added first in <head> (right after <meta charset>), on public pages only; Drupal's JavaScript aggregation does not touch it. If a CDN or Varnish sits in front, clear their cache after saving.
Need help? [email protected]
Ready to put it on your website?
Install it with one line of code, the Google Tag Manager template or the WordPress plugin.