Magento 2
The BerryCookie_ConsentBanner module works on Magento Open Source and Adobe Commerce 2.4.6–2.4.8 and is installed from the server's command line. If you have no server access, send these steps to your shop's developer.
- Download the Magento 2 module and copy the
BerryCookiefolder intoapp/code/. - Run
bin/magento module:enable BerryCookie_ConsentBannerandbin/magento setup:upgrade, in production mode alsobin/magento setup:di:compileandbin/magento setup:static-content:deploy, thenbin/magento cache:flush. - Stores → Configuration → General → BerryCookie – Cookie Consent: paste the website key (one key per website or store view if you have several) and save.
- Flush the Page Cache and use Check installation.
The module puts the script first in <head>. If Move JS code to the bottom of the page is on (Stores → Configuration → Advanced → Developer), Magento moves every script to the end and BerryCookie runs too late: turn that option off.
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.