Official plugins
Cookie consent — a cookie consent banner
The official Cookie consent plugin — a PDPA / GDPR banner with your own text, buttons, policy link, position and colours; it remembers the visitor's choice and lets other scripts wait for consent
On this page
The Cookie consent plugin (cookie-consent) shows a PDPA / GDPR cookie consent banner on every page. Visitors who have chosen don't see it again.

Settings#
Plugins → Cookie consent → Settings
| Setting | Meaning |
|---|---|
| Message | The text on the banner |
| Accept / decline button | Button text — leave the decline button empty to hide it |
| Policy link and text | e.g. /privacy and "Privacy policy" |
| Position | Bottom or top of the screen |
| Colours | Background, text, button and button text |

Letting other scripts wait for consent#
The visitor's choice is stored in localStorage.anasaki_consent (accepted or declined) and announced as the anasaki:consent event — tracking scripts added through Custom code should wait like this:
function start() { /* load Google Analytics / Facebook Pixel here */ }
if (window.anasakiConsent === 'accepted') start();
document.addEventListener('anasaki:consent', e => e.detail === 'accepted' && start());
Anasaki's Analytics uses no cookies, so it works without waiting for consent.
