Lightweight, standalone, and zero-dependency cookie consent manager. Features native Google Consent Mode v2, a consent choice modal, and a granular preference center.
Interact with the module below to test the banner, preference modal, and real-time consent persistence.
<script defer src="rgpd-consent.js"></script> Current state dispatched to gtag('consent', 'update', ...):
Under 35 KB of pure Vanilla JS. No frameworks, build tools, or external libraries required.
Automatically supports English and French based on the visitor's browser language or your configuration.
Built from the ground up for Google Analytics 4, Google Ads, and Tag Manager compliance.
"Decline all" option equally prominent as "Accept all". Automatic 6-month retention in LocalStorage.
Smooth animations, glassmorphism backdrop, and automatic dark & light theme support.
Visitors can revoke or update their preferences anytime via a discreet icon in the bottom-left corner.