--- layout: default title: Demo description: Interactive demo of Extended Cookie Consent with all features permalink: /demo/ ---
A modern, GDPR-compliant cookie consent library with granular controls, beautiful UI, and comprehensive compliance features.
Everything you need for comprehensive cookie compliance
Allow users to choose specific cookie categories: necessary, analytics, marketing, and preferences.
Beautiful, responsive design with smooth animations and dark mode support.
Built-in compliance with GDPR, CCPA, and other privacy regulations.
Seamless integration with Google Analytics, GTM, and custom analytics solutions.
Extensive theming options, custom positioning, and flexible content management.
Perfect responsive design that works flawlessly on all devices and screen sizes.
Try different configurations and see the cookie consent in action
Get started in minutes with CDN or npm
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/casjay-templates/cookieconsent@main/dist/cookieconsent.min.css">
<script src="https://cdn.jsdelivr.net/gh/casjay-templates/cookieconsent@main/dist/cookieconsent.min.js"></script>
<link rel="stylesheet" href="https://raw.githubusercontent.com/casjay-templates/cookieconsent/main/dist/cookieconsent.min.css">
<script src="https://raw.githubusercontent.com/casjay-templates/cookieconsent/main/dist/cookieconsent.min.js"></script>
// Initialize with default settings
cookieconsent.extended.init({
content: {
header: 'We use cookies',
message: 'This website uses cookies to enhance your experience.',
acceptAll: 'Accept All',
rejectAll: 'Reject All'
}
});
// Check consent status
if (cookieconsent.extended.hasConsent('analytics')) {
// Initialize analytics
gtag('config', 'GA_MEASUREMENT_ID');
}
Comprehensive guides and API reference