Build a fully customized, compliant consent banner in under 60 seconds. Copy one snippet. Paste it anywhere.
Trusted by developers and website owners worldwide
gtag('consent','default',{...}) before any tag fires. Required for GA4 and Google Ads compliance.Copy this into the <head> of every page — before Google Analytics or GTM.
<head> tag lives.<head>, before any analytics or ad tags.layout/theme.liquid.</head> tag.Everything you need for free, GDPR-aligned consent collection.
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) | — | ✓ |
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.
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 →