Kerabie
Kerabie
Security

How does Cookie Consent mode work?

Last updated 1 December 2026 · 20 views

Correction: the widget doesn't actually use cookies — visitor/session data (a session id, conversation id, name/email if given, and your appearance settings) is kept in the browser's local storage, not a cookie. We still call this feature "Cookie Consent" since that's the term visitors and consent-management platforms use, but technically it's local-storage consent.

What the switch does

Turning on Cookie Consent (Settings → Org Settings → Security and Privacy) does two things:

1.It's baked into your install snippet as requireCookieConsent: true. If you installed the widget before turning this on, re-copy the snippet from Settings → Widget Settings → Get Install Code and swap it in on your site — the flag only takes effect in a freshly generated snippet, not retroactively on the one already on your page.
2.From that point on, the widget stops writing anything to local storage — no session id, no remembered name/email, nothing — until you tell it consent was given.

The widget keeps working normally either way; a visitor who hasn't consented can still chat, they just won't be recognized if they reload the page or come back later.

Wiring it to your cookie bar

Call window.Kerabie.setConsent(granted) from your consent bar's own callbacks:

// on accept

window.Kerabie?.setConsent(true)

// on decline, or if the visitor later withdraws consent

window.Kerabie?.setConsent(false)

Most consent-management platforms (OneTrust, Cookiebot, Osano, etc.) expose an "on consent changed" callback or event you can hook this into. setConsent(false) also clears anything already stored, so a decline after an earlier accept genuinely forgets the visitor.

If the visitor already consented on a previous visit, they're recognized again on this one automatically — only writes wait for consent, not reads.

See the JavaScript API docs for the full reference, and "Is Kerabie GDPR compliant?" for what's stored and why.

Was this helpful?
Was this article helpful?
← Back to Help Center

Still need help?

Our support team typically responds within 24 hours on paid plans.