Google Tag Manager
- Download the BerryCookie template (below), or pick it from the Community Template Gallery once it is listed there.
- Tag Manager → Templates → Tag Templates → New → ⋮ → Import → select the downloaded file → Save.
- Tags → New → BerryCookie → paste the website key. Set the Consent Mode defaults per region if you need different ones.
- Trigger: Consent Initialization – All Pages. Publish the container.
- Remove a hand-added BerryCookie script, if any: load BerryCookie one way only.
The template sets the Consent Mode defaults, applies a returning visitor's decision immediately and loads the banner. With script blocking on Manual (recommended), each tag's consent settings decide when it fires. For custom triggers use the data layer event:
Event name: berrycookie_consent_update
Data Layer Variable: berrycookie.categoriesNeed 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.