Search by

berrycookie / module-consent-banner

berrycookie

BerryCookie – Cookie Consent: the BerryCookie cookie banner, script blocking and Google Consent Mode v2 for Magento Open Source and Adobe Commerce.

Package info

github.com/BerryCookie-Organization/berrycookie-magento2

Homepage

Type:magento2-module

pkg:composer/berrycookie/module-consent-banner

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-11-17 23:24 UTC

This package is not auto-updated.

Last update: 2026-11-18 22:29:02 UTC


README

Adds the BerryCookie cookie banner to Magento Open Source and Adobe Commerce 2.4.6–2.4.8: a fair banner ("Reject" as visible as "Accept"), blocking of optional trackers until consent, Google Consent Mode v2 and proof of every choice in the BerryCookie consent log.

Install

composer require berrycookie/module-consent-banner
bin/magento module:enable BerryCookie_ConsentBanner
bin/magento setup:upgrade
bin/magento cache:flush

In production mode also run bin/magento setup:di:compile and bin/magento setup:static-content:deploy.

Configure

  1. Create a free account at berrycookie.com, add your store and copy its website key (Websites → Install).
  2. Stores → Configuration → General → BerryCookie – Cookie Consent: paste the website key (one per website or store view if you have several), choose automatic or manual script blocking and Google Consent Mode, and save.
  3. Flush the Page Cache and check the result with the free website check.

The module prints the script first in <head>. Keep Stores → Configuration → Advanced → Developer → Move JS code to the bottom of the page off: it would move the banner script after the trackers it must hold.

A link whose address ends in #berrycookie-settings (for example in a CMS footer block) reopens the banner.

Full guide: berrycookie.com/en/docs/magento

External service

The banner script is loaded from https://cdn.berrycookie.com and consent choices are recorded at https://consent.berrycookie.com, only after a website key is saved. Without a key the module prints nothing and sends no data. Data is hosted in the EU. Privacy policy.

Requirements

PHP 8.1–8.4, Magento Open Source or Adobe Commerce 2.4.6–2.4.8.

Support

contact@berrycookie.com · contact form

License

OSL-3.0