Cómo usar: Cookie Consent Banner Generator
- Choose the layout — a bar, a corner box or a centered dialog — and edit the title, message and button labels.
- Keep Settings on to let visitors choose categories (analytics, marketing, preferences), and link your privacy policy.
- Leave Google Consent Mode v2 on if you use Google Analytics or Ads: paste snippet 1 in the
<head>before your Google tag. - Paste snippet 2 before
</body>, and add a “Cookie settings” link to#cookie-settingsin your footer.
What the banner does
- Shows on the first visit and stores the visitor’s choice in
localStorage(not a cookie) for the number of days you set. - Accept all, Reject all and Settings — rejecting is one click and as visible as accepting, which regulators expect under GDPR.
- Any link to
#cookie-settingsreopens the settings, so visitors can change their mind at any time. - Blocks your other tags until consent: scripts marked
type="text/plain" data-cookie-category="analytics"(or marketing, preferences) and iframes withdata-srcrun only after the visitor accepts that category. Withdrawing consent reloads the page so they stop. - It fires a
cookie-consentevent ondocumentwith the choices, so you can load other scripts only after consent.
Google Consent Mode v2
Snippet 1 sets every Google consent signal — ad_storage, ad_user_data, ad_personalization and analytics_storage — to denied before your Google tag loads. When the visitor chooses, the banner updates them: analytics to analytics_storage, marketing to the three ad signals. Google Analytics then records full data only for visitors who agreed, and cookieless pings for the rest. Since March 2024 Google requires Consent Mode v2 for ads measurement of visitors in the European Economic Area.
This is a technical tool, not legal advice: list the cookies you actually use in your privacy policy, and check what your country requires. Related: Tracking Tag Checker, Meta Tag Generator.
También se busca como: cookie banner generator, gdpr cookie banner, cookie consent code, google consent mode v2, cookie popup html, free cookie banner, cookie consent webflow, cookie notice generator.
Herramientas que combinan con: Cookie Consent Banner Generator
- CSP Generator — Pick what your site loads — scripts, styles, images, fonts, analytics, embeds — and get a Content-Security-Policy that allows exactly that, with warnings for risky settings.
- Verificador SEO y auditoría del sitio web — Pega una URL para realizar hasta 70 comprobaciones de SEO on-page, además de una auditoría completa del sitio web: velocidad de Lighthouse, encabezados de seguridad y SSL, datos estructurados, enlaces rotos, robots.txt y rastreadores de IA, aspectos básicos de accesibilidad, seguimiento y consentimiento, SPF/DKIM/DMARC y caducidad del dominio — todo ello resumido en una puntuación global del sitio web con soluciones priorizadas.
- HTML & CSS to Webflow — Paste HTML and its CSS, click Copy to Webflow and paste into the Designer — you get real Div Blocks, Headings, Links, Images and Lists with classes, combo classes, tablet/mobile breakpoints and hover states instead of one big Code Embed.
- Email Header Analyzer — Paste the raw headers of an email to see its whole journey: every server hop with the time it took, the SPF, DKIM and DMARC results, the originating IP, and warning signs like a mismatched Reply-To or Return-Path.