Consentik™
Embed Script · Free forever

One script. Any website.
Consent compliant.

A lightweight JavaScript embed that adds GDPR-compliant consent management to any website — no plugins, no framework lock-in, no performance penalty.

No credit card required 5-minute setup < 8 KB gzipped
Live
1<!-- Paste into your <head> tag -->
2
3<script
4 src="https://cdn.consentik.com/v2/cmp.js"
5 data-site-id="site_8f2c91"
6 data-mode="auto"
7 async></script>
8
9// That's it — auto-detects jurisdiction
10// and serves the right banner.
1import { ConsentikProvider } from '@consentik/react'
2
3export default function App() {
4 return (
5 <ConsentikProvider siteId="site_8f2c91">
6 <Router />
7 </ConsentikProvider>
8 )
9}
10// Consent state via useConsent() hook
1<script setup>
2import { useConsentik } from '@consentik/vue'
3
4useConsentik({
5 siteId: 'site_8f2c91',
6 mode: 'auto'
7})
8</script>
9
10// Reactive consent state across the app
1{%- comment -%} layout/theme.liquid {%- endcomment -%}
2
3<head>
4 {{ content_for_header }}
5
6 <script src="https://cdn.consentik.com/v2/cmp.js"
7 data-site-id="site_8f2c91" async></script>
8</head>
9
10{%- comment -%} Same script — any platform {%- endcomment -%}

Global compliance — handled automatically

GDPR CCPA / CPRA LGPD DMA Google Consent Mode V2 IAB TCF v2.3 Microsoft Consent Mode

Why developers choose Consentik

A consent layer that gets out
of your way

No plugin lock-in, no framework lock-in. One small script, every modern privacy standard, every regulation — managed from a single dashboard.

Lightweight by design

7.4 KB gzipped, no dependencies, async-loaded. Core Web Vitals stay green — Lighthouse won't flag the install.

Platform-independent

Works on React, Vue, Svelte, Next.js, vanilla HTML, Shopify, Wix, SHOPLINE, WordPress — any environment that runs JavaScript.

Automatic script blocking

Google Analytics, Meta Pixel, Microsoft UET, and any tracker tagged with type="text/plain" waits until consent is granted.

Brand-matched banners

Match colors, typography, copy, and position — corner popup, bottom bar, center modal, or a custom layout. All from the dashboard.

Centralized dashboard

Manage all your sites in one place. Push banner copy, color, and regulation rules across every property in a single click.

Geolocation-aware

Detects each visitor's jurisdiction in real time and serves the matching banner — GDPR in the EU, CCPA in California, LGPD in Brazil, and so on.

Works everywhere

Drop it into anything that runs JavaScript

The embed is the same script across every platform. No SDK forks, no version drift, no per-framework documentation to chase.

Read the integration docs

React & Next.js

@consentik/react

Vue & Nuxt

@consentik/vue

Vanilla HTML

Single <script> tag

Shopify

theme.liquid

Wix

Velo or custom HTML

SHOPLINE

App Block

WordPress

Header injection

Custom builds

Any JS runtime

Setup

From signup to compliant in 4 steps

No developer-only steps. Anyone who can paste a tag into a header can ship it.

1

Generate your script

Register your site in the dashboard. You'll get a unique site ID and a one-line embed script.

2

Paste into your <head>

Drop the snippet into the head of every page. Works in any HTML, any framework, any CMS.

3

Configure in the dashboard

Set colors, position, copy, and which regulations apply. Changes push live instantly — no redeploy.

4

Ship — compliance is live

Visitors see the right banner for their jurisdiction. Scripts fire only after consent. Logs stay current.

FAQ

Common questions

Everything you need to know about the Consentik CMP embed.

How large is the embed script?

7.4 KB gzipped. No dependencies, async-loaded, zero CLS. Lighthouse and Core Web Vitals stay green — the script never blocks rendering and adds no cumulative layout shift.

Does it work with React, Vue, Next.js, and other frameworks?

Yes. The base embed is a single <script> tag that works in any environment that runs JavaScript. We also publish first-class adapters for React (@consentik/react), Vue (@consentik/vue), and SPAs that need reactive consent state.

How does Consentik block tracking scripts automatically?

Any script tag marked with type="text/plain" and data-cookieconsent="<category>" is held until the visitor grants consent for that category. Once consent is granted, the type attribute is rewritten and the script executes immediately.

How does jurisdiction detection work?

Each visitor's IP is geolocated server-side, mapped to the right regulation (GDPR, CCPA, LGPD, DMA, etc.), and the matching banner is served. The mapping is updated globally as laws change — no action required from you.

Is there a JavaScript API for custom integrations?

Yes. The embed exposes window.Consentik with methods like getConsent(), setConsent(), onConsentChange(), and openPreferences() for fully programmatic control. Useful for SPAs, custom UI, and headless integrations.

Does it work on Single Page Apps (SPAs)?

Yes. The embed listens for route changes and re-fires consent events on navigation, so analytics tools that need per-page consent (like GA4 with Consent Mode V2) work correctly across SPA routes.

Ready to add consent to your site?

One line of code.
Every privacy law.

Free to install. 5-minute setup. No credit card required.

Free plan available forever · No credit card required · Cancel anytime

Consentik CMP Embed

Simplifying privacy compliance, protecting data and building trust.

© 2026 Consentik™. All Rights Reserved.