# 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

Source: https://anasaki.live/docs/en/store/plugin-cookie-consent

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.

![The banner on a page](/uploads/2026/11/plugin-cookie-banner-678041077.png)

The banner on a page

## 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 &#34;Privacy policy&#34; |
| Position | Bottom or top of the screen |
| Colours | Background, text, button and button text |

![The Cookie consent settings page](/uploads/2026/11/plugin-cookie-settings-735873240.png)

The Cookie consent settings page

## 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](/docs/en/store/plugin-custom-code) should wait like this:

```js
function start() { /* load Google Analytics / Facebook Pixel here */ }
if (window.anasakiConsent === 'accepted') start();
document.addEventListener('anasaki:consent', e => e.detail === 'accepted' && start());
```

> [!NOTE]
> Anasaki's [Analytics](/docs/en/store/plugin-analytics) uses no cookies, so it works without waiting for consent.
