Zero Dependencies
Pure JavaScript implementation with no external dependencies. Less than 20KB gzipped.
CookieDialog provides a simple, lightweight solution for GDPR cookie consent management that respects your usersβ privacy while keeping your site compliant.
Zero Dependencies
Pure JavaScript implementation with no external dependencies. Less than 20KB gzipped.
Geolocation Detection
Automatically detect if users are in GDPR-required regions and show consent dialog accordingly.
Easy Integration
Simple CDN or NPM installation. Works with any framework or vanilla JavaScript.
Fully Customizable
Themes, translations, categories, and styling options to match your brand.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/cookiedialog.min.css">
npm install cookiedialog
CookieDialog.init({ enableLocation: true, privacyUrl: '/privacy', onAccept: (consent) => { console.log('Cookies accepted:', consent); }});