Consentik™
Free · No signup required

Free Cookie Banner
for GDPR & Consent
Mode v2

Build a fully customized, compliant consent banner in under 60 seconds. Copy one snippet. Paste it anywhere.

15,000+
websites using it
~8 KB
gzipped, zero deps
60 s
setup time
Google Consent Mode v2 active
yourwebsite.com

Trusted by developers and website owners worldwide

15,000+
websites using it
~8KB
gzipped, zero deps
100%
free, no signup
GCM v2
Google Consent Mode
MK
Marta K. — WooCommerce store ★★★★★
“Set it up in 5 minutes. The live preview made getting the colors exactly right trivially easy.”
JS
James S. — Webflow agency ★★★★★
“Finally a free tool that actually wires up Consent Mode v2. Saves me €200/yr per client site.”
AR
Ananya R. — SaaS founder ★★★★★
“Shadow DOM isolation means it works on our React app with zero style conflicts. Love it.”
Configure your banner
Banner text
Links
Must be a valid https:// URL
Must be a valid https:// URL
Banner type
Position
Banner colors
Banner background
Title and description
Accept, Reject & Customize
Text on all buttons
Consent settings
Google Consent Mode v2
Fires gtag('consent','default',{...}) before any tag fires. Required for GA4 and Google Ads compliance.
days (1–730)
Must be a whole number between 1 and 730
Preferences popup
Category labels & descriptions
Essential (always on)
Analytics
Advertising
Functional
Live preview
preview mode

Your snippet

Copy this into the <head> of every page — before Google Analytics or GTM.

Paste into <head> — before GA / GTM

      
Paste before Google Analytics or GTM — consent defaults must fire first.
Install guide — pick your platform:
  1. Copy the snippet above.
  2. Open the HTML file where your <head> tag lives.
  3. Paste the snippet as the first child of <head>, before any analytics or ad tags.
  4. Save and deploy.
  1. Copy the snippet above.
  2. Install the free “Insert Headers and Footers” plugin.
  3. Go to Settings → Insert Headers and Footers → Scripts in Header.
  4. Paste the snippet and save. No theme file editing needed.
  1. Copy the snippet above.
  2. In GTM, create a new tag → Custom HTML.
  3. Paste the snippet. Trigger: All Pages → Page View.
  4. Set tag priority to 10 (higher than analytics tags).
  5. Publish the container.
  1. Copy the snippet above.
  2. Go to Online Store → Themes → Edit code.
  3. Open layout/theme.liquid.
  4. Paste the snippet immediately before the closing </head> tag.
  5. Save and preview.

What’s included

Everything you need for free, GDPR-aligned consent collection.

Customize colors, text & layout
Full-width or floating. Any color. All button text. Match your brand in seconds.
Google Consent Mode v2 built-in
Fires consent defaults before any tag. Keeps GA4 and Google Ads compliant without extra config.
4 GDPR categories
Essential, Analytics, Advertising, Functional — the standard set for GDPR compliance.
Shadow DOM isolation
Renders inside Shadow DOM — your site’s CSS cannot interfere, no matter the framework.
~8 KB gzipped · zero dependencies
Single script file. No npm, no React, no jQuery. Won’t slow your page down.
Works on WordPress, Shopify, HTML
Paste the 2-line snippet anywhere. Detailed install guides for every platform included.

Free banner vs Consentik CMP plugin

Need more? The paid CMP adds geo-targeting, TCF, cookie scanning, consent logs, and more.

Feature Free banner (this) Consentik CMP plugin
Banner UI customization
Google Consent Mode v2
4 standard categories ✓ yes + unlimited custom
Cookie Settings reopener (floating icon)
Block interaction until consent (modal lock)
Geo-targeting (EEA / per-country)
Multi-language auto-detect
IAB TCF v2.2 framework
Automatic cookie scanning
Consent logs / audit trail
White-label (remove Consentik branding)

Frequently asked questions

Everything you need to know about cookie consent and this banner.

A small UI that asks visitors for permission to use cookies for analytics, ads, or other non-essential purposes, as required by GDPR and similar laws.

If your site serves EU/EEA / UK visitors and uses non-essential cookies, yes. Many other jurisdictions (CA, BR, ZA) have similar rules.

GCM v2 is Google's framework for telling Google products (Ads, Analytics) the user's consent state. From March 2024 onwards, it is required for EEA Google Ads users.

The banner supports opt-in consent, separate Accept / Reject buttons of equal weight, and category-based choices — the core GDPR requirements. Full compliance also depends on your policies and how your site handles data.

Yes — paste the snippet into the appropriate head template on any platform.

Clear cookies for your site and reload. The banner should appear. Inspect `document.cookie` after clicking Accept; `_consentik_cookie` should be set.

This free banner does not include a persistent "Cookie Settings" reopener. You can add a link in your footer that calls `window.ConsentikBanner.show()` to reopen the banner. For a persistent, customizable reopener icon, upgrade to Consentik CMP.

Inside `<head>`, before Google Analytics / GTM so Consent Mode defaults fire first.

The `banner.js` file is small (~target 8KB gzipped) and loaded asynchronously. Impact is minimal.

When GCM is enabled and the user rejects, GA still sends events but in "cookieless" mode. When they accept, full tracking resumes. The banner itself does not block GA.

Labels and descriptions are fully customizable for i18n. The 4 category keys (essential / analytics / advertising / functional) are fixed. For unlimited custom categories, use Consentik CMP.

By default 180 days; configurable 1–730.

The banner supports the mechanics most laws require. For jurisdiction-specific features like geo-targeting, opt-out links, and TCF, use Consentik CMP.

No — this free banner does not implement IAB TCF v2.2. Consentik CMP does.

The free banner has no visible Consentik branding on the user-facing UI. White-label options are available with Consentik CMP.

Need more than a banner?

Consentik CMP does cookie scanning, geo-targeting, TCF v2.2, a persistent reopener, consent logs, and more. Set up in minutes on any WordPress site.

Get Consentik CMP →
Copied ✓
Free Cookie Banner Generator

Simplifying privacy compliance, protecting data and building trust.

© 2026 Consentik™. All Rights Reserved.