Documentation last updated May 29, 2026
API
Developer-facing runtime surface
Cookiezy exposes a small runtime surface in the browser plus adapter helpers and consent-related events. The exact bootstrap call differs by adapter, but the shared browser behavior is consistent.
Code snippet
window.Cookiezy?.openSettings();
window.Cookiezy?.acceptAll();
window.Cookiezy?.rejectOptional();
window.Cookiezy?.getConsent();
window.addEventListener('cookiezy:consent:update', (event) => {
console.log(event.detail.preferences);
console.log(event.detail.googleConsent);
});
window.addEventListener('cmt:cookie-consent:update', (event) => {
console.log('Legacy compatibility event', event.detail);
});