berrycookie / module-consent-banner
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
Type:magento2-module
pkg:composer/berrycookie/module-consent-banner
Requires
- php: ~8.1.0||~8.2.0||~8.3.0||~8.4.0
- magento/framework: ^103.0.6
- magento/module-backend: ^102.0.6
- magento/module-config: ^101.2.6
- magento/module-store: ^101.1.6
- magento/module-theme: ^101.1.6
Requires (Dev)
None
Suggests
- magento/module-csp: etc/csp_whitelist.xml allows the BerryCookie hosts in the Content Security Policy
Provides
None
Conflicts
None
Replaces
None
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
- Create a free account at berrycookie.com, add your store and copy its website key (Websites → Install).
- 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.
- 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