Consentik Embed Script for Cookie Consent Management
Lightweight JavaScript solution to add a GDPR-compliant banner to any website. No plugin required. Get started for free today.
<!-- Global head integration --> <head> <script> !function(e,t,n,s,i,c) { const a=t.getElementsByTagName(n)[0]; const d=t.createElement(n); d.id="cst-package"; d.async=!0; d.src="https://cmp.consentik.com/v1.js"; a.parentNode.insertBefore(d,a); }(window,document,"script"); </script> </head>
What is Consentik Embed Script?
Consentik is a JS-based integration compatible with any CMS or framework. Manage your compliance centrally without heavy plugins or performance overhead.
JavaScript embed
Single line of code integration for instant activation.
Works on any site
Compatible with React, Vue, Shopify, WordPress, and more.
No plugin required
Keeps your site performance-optimized and lightweight.
Centralized dashboard
Manage multiple domains and settings from one place.
The Benefits of Going Script-First
Platform-Independent
Works everywhere from Shopify to custom HTML. No dependencies, no conflicts.
Lightweight
Minimal impact on page load speeds. Optimized for Core Web Vitals.
Automatic Blocking
Blocks cookies and third-party scripts automatically until consent is granted.
Customizable Banner
Match your brand style perfectly. Customize colors and fonts via dashboard.
Centralized Management
Update settings across multiple sites instantly without redeploying.
GDPR Compliance
Built for modern privacy regulations including GDPR, CCPA, and LGPD.
Implementation in 4 Simple Steps
Generate Script
Register your site and get your unique ID.
Add to <head>
Paste the optimized script into your header.
Configure
Customize the UI to match your brand colors.
Publish
Go live! Compliance is handled automatically.
Direct Script Integration
Copy and paste this snippet before the closing </head> tag.
<script>!function(e,t,n,s,i,c){const
a=t.getElementsByTagName(n)[0],d=t.createElement(n);d.id="cst-package",d.async=!0,d.src="https://cmp.consentik.com/sites/INSTANCE_ID/SITE_ID/index.js?v="+(new
Date().getMinutes()),a.parentNode.insertBefore(d,a)}(window,document,"script");</script>
Replace "INSTANCE_ID" and "SITE_ID" with your actual dashboard credentials.
Embed Script vs. CMS Plugins
Why performance-focused developers choose script-first solutions.
Consentik Embed Script
- check_circle Platform-independent (Any CMS/Framework)
- check_circle Zero database load on your server
- check_circle Centralized updates without code changes
- check_circle Automatic script blocking out-of-the-box
Traditional CMS Plugins
- cancel Tied to specific platforms (e.g. WP only)
- cancel Adds bloat to your server & DB queries
- cancel Requires constant manual version updates
- cancel Prone to security vulnerabilities
Get Started with Consentik Embed Script
Ensure your website meets global privacy standards with our easy-to-use solution.
No Credit Card Required Always Free Tier Available