A cookie consent banner notifies website visitors about cookie usage and obtains their consent. Required by GDPR (EU) and CCPA (California) for websites serving users in those regions.
1. Configure the options above (position, compliance mode, colors)
2. Click Generate Code
3. Click Copy Code to copy to clipboard
4. Paste the code into your HTML file before the </body> tag
5. The banner will appear automatically. User choices are stored in localStorage
• Fully frontend implementation, no backend required
• User choices stored in browser localStorage (365 days)
• Supports GDPR (Opt-in) and CCPA (Opt-out) modes
• Customizable colors, position, and text
• English and Chinese language support
• Optional privacy policy link
• No external dependencies - no third-party libraries needed
• Copy-paste ready, no additional configuration
A notification bar that informs visitors about cookie usage and obtains consent. Required by GDPR and CCPA privacy regulations.
GDPR requires opt-in (no tracking by default). CCPA requires opt-out (tracking allowed by default). Choose the mode that applies to your audience.
No, it's fully frontend. Just paste the code into your HTML. User choices are stored in localStorage.
Add the code to your site, open incognito mode or clear cache. The banner should appear. After accepting/rejecting, the banner disappears and won't show again on refresh.
Yes, English and Chinese are built-in. You can also use Auto mode to detect the browser's language.