GDPR cookie consent banner — free, no code
Drop a compliant cookie consent banner on your site in minutes. Load Google Tag Manager (or any analytics) only after the visitor accepts. Customize colors and copy.

Why teams pick this
Pre-built banner
GDPR-friendly Cookie Banner template with Accept and Decline buttons, ready to drop in.
Load scripts after consent
Use the FloatMessage JavaScript API to load Google Tag Manager (or any tracker) only when the visitor clicks Accept.
Persistent dismissal
Once a visitor accepts or declines, the banner remembers their choice and never shows again unless you change settings.
Customizable
Edit copy, colors, and button labels to match your brand. Add a privacy policy link in one click.
How it works
Pick the Cookie Banner template
Create a new floating message and choose the Cookie Banner template.
Customize copy
Edit the message and link to your privacy policy. Set dismiss behavior to 'Permanent'.
Wire up GTM
Use FloatMessage.on('cta:click') to load Google Tag Manager when the visitor clicks Accept. Full code in the guide.
Built for these use cases
GDPR compliance
Meet EU cookie law without paying for a CMP. Show a banner, get explicit consent, log the choice.
CCPA compliance
Comply with California Consumer Privacy Act with the same banner. Opt-out instead of opt-in if needed.
Analytics gating
Don't fire Google Analytics, Meta Pixel, or any tracker until the visitor opts in. Keeps your hands clean.
Frequently asked questions
Is this GDPR-compliant?
Yes. The banner shows before any tracking scripts load, captures explicit consent, and remembers the choice. Combine with the JS API to gate Google Tag Manager.
Does it work with Google Tag Manager?
Yes. The recommended pattern: load GTM only after FloatMessage fires the cta:click event when a visitor accepts.
Can I customize the banner?
Yes. Edit the HTML and CSS in the visual editor. Change colors, copy, button labels, and link to your privacy policy.
Will the banner show on every page load?
Only until the visitor accepts or declines. Set dismiss behavior to 'Permanent' so it never shows again after their first choice.
Is it free?
Yes. Cookie banner is included on every FloatMessage plan, including the free 30-day trial. No add-on fees.
Try cookie consent free for 30 days
No credit card required. Full access to every feature.
Start Free 30-Day TrialRelated features
Floating Messages
Popup Builder
Build website popups with 17 pre-made templates. Drag-and-drop editor, smart triggers, scheduling, and a one-line embed script. No code required.
Smart Targeting
Geo Targeting
Show different popups to visitors from different countries. Localize offers, comply with regional laws, and personalize messaging — no code required.
Forms & Feedback
Contact Forms
Add a popup contact form to any website. Built-in validation, webhook forwarding to Slack/Zapier, and a submissions inbox in your dashboard.