Kansleri Cookie Consent
Kansleri Cookie Consent
Description
Kansleri Cookie Consent is a free, lightweight, and easy-to-use WordPress cookie consent plugin. There are no ads, no pro version, and no upsells. It is perfect for personal websites, small businesses, and hobby sites who want no-hassle cookie consent.
Features:
- Three banner styles: bottom bar, centered modal, corner popup
- Customizable colors, texts, and button labels
- Theme or Plugin typography mode for consistent banner styling
- Four consent categories: Necessary, Analytics, Marketing, Preferences
- Script auto-blocking — prevents third-party scripts from running until consent is given
- YouTube & Vimeo iframe blocking — video embeds are blocked until marketing cookies are accepted, with a user-friendly placeholder
- Google Consent Mode v2 integration with automatic default/update signals
- GTM dataLayer push on consent changes
- Integration tab recommends Google Site Kit (Google’s official WordPress plugin) for installing Google Analytics 4 and Google Tag Manager, so Consent Mode v2 signals work out of the box without manual GTM snippet management
- Built-in cookie scanner that auto-identifies common cookies (Google Analytics, Meta Pixel, WordPress core, and more)
- AI-assisted cookie descriptions — copy a prompt, paste into an AI tool, import the result
- AI-assisted policy page generation — generate a complete cookie/privacy policy page with one prompt
- Auto-generated cookie policy page with a dynamic shortcode (theme or plugin styling)
- Floating settings button for visitors to update preferences (on by default)
[kncc_cookie_settings]shortcode — add a cookie settings link anywhere (footer, menu, etc.) with customizable text- “Edit cookie preferences” button on the policy page for easy consent withdrawal
- Per-user consent logging — anonymized audit trail for GDPR compliance with CSV export
- Consent statistics dashboard (no personal data stored)
- Graceful multilingual policy page fallback — if a language is missing a translated policy page, the banner links to the default-language page instead of a 404
- Google Site Kit integration — auto-detects and avoids duplicate consent signals
- WP Consent API integration — shares consent status with other plugins
- Full WPML and Polylang support — per-language banner texts, cookie descriptions, banner style, colors, and policy page
- Finnish translation included with auto-localized defaults
- Daily cron check for missing cookie descriptions with admin notifications
- Comprehensive documentations tab with installation guide, option explanations, and troubleshooting
- Clean uninstall — removes all data when deleted
Installation
- Upload the
kansleri-cookie-consentfolder to the/wp-content/plugins/directory, or install directly through the WordPress plugin screen. - Activate the plugin through the Plugins menu in WordPress.
- Navigate to Settings > Cookie Consent to configure the banner.
- Use the Cookies tab to scan your site and register cookies.
- Publish the auto-created cookie policy page or add the
[kncc_cookie_policy]shortcode to any page.
Screenshots

Cookie consent banner on the frontend (bottom bar style)

General settings — customize banner style, colors, typography, and button texts

Cookies tab — scan your site, auto-detect cookies, and use AI to generate descriptions

Policy Page tab — select your policy page and generate a complete privacy policy with one AI prompt

Integration tab — Google Consent Mode v2 and Site Kit / WP Consent API status

Script Blocking tab — auto-detected third-party scripts blocked before consent

Statistics tab — consent response summary with accept, reject, and custom breakdown

Consent Log — anonymized per-visitor audit trail with CSV export
Faq
Yes. When enabled under the Integration tab, the plugin outputs consent defaults in <head> before any other scripts, and sends consent update signals whenever a visitor changes their preferences. If Google Site Kit is active, duplicate defaults are automatically avoided.
The scanner loads your homepage in a hidden iframe, reads all cookies, and matches them against a built-in database of known cookie patterns (Google, Meta, WordPress, etc.). Known cookies are added automatically; unknown cookies are presented for categorization with an AI-assisted workflow.
Yes. When WPML or Polylang is active, you can set per-language banner texts, cookie descriptions, banner style, colors, and policy page. Switch to a secondary language in the admin bar and edit the settings. Values not customized for a language fall back to the default language. Cookie names, categories, providers, and durations are shared across all languages.
Yes. The plugin detects Site Kit automatically. If Site Kit is managing consent mode defaults, this plugin skips its own default output and only sends consent updates when visitors make a choice. Consent Mode v2 is forced on when Site Kit is active.
Yes. When the WP Consent API plugin is active, consent status is automatically shared with other plugins that support the API.
Statistics are tracked server-side via lightweight AJAX calls when visitors make a consent choice. No personal data, IP addresses, or tracking cookies are used. Only daily aggregates (accept/reject/custom counts) are stored.
Yes. YouTube and Vimeo iframes are automatically blocked until the visitor accepts marketing cookies. A placeholder is shown in place of the video with an “Accept marketing cookies” button. If the visitor has already accepted cookies via the consent banner, videos load normally without any placeholder.
Use the shortcode [kncc_cookie_settings] in any widget, page, or template. You can customize the link text with [kncc_cookie_settings text="Manage cookies"]. The shortcode is also shown with a copy button in the plugin settings page.
All plugin options (kncc_settings, kncc_cookies, kncc_consent_stats, kncc_incomplete_cookies, kncc_show_activation_notice, kncc_defaults_localized, kncc_cron_error) and the daily cron schedule are removed from the database. The auto-created policy page is not deleted to prevent accidental content loss.
Reviews
Very simple and overall brilliant
By jaloin (funnypurple) on March 20, 2026
This plugin has everything you need to control cookies and be GDPR compliant. Very easy to configure.
Changelog
1.5.1
- New: Documentations tab now ships a Custom CSS template — every selector the plugin uses, presented as one copy-paste-ready CSS block with a one-click “Copy CSS template” button. Uncomment the rules you want to customize, paste into Customizer or your child theme, save.
- Improved: Category toggles redesigned with an outlined “off” state that tracks the body text color, and an “on” knob that tracks the primary text color — so the on/off states stay visible at any color combination, including pure-white primary buttons.
- Improved: “Customize” and “Close” link buttons in the banner now have a clear hover state — subtle background tint with rounded corners and a thicker underline, so the click target is obvious instead of relying only on a small color shift.
- Improved: “Close” button now uses the body text color so it reads as a quiet dismissal action rather than competing for attention with “Customize” and the primary buttons.
- Improved: Banner preview’s close (×) icon follows the body text color picker, so it stays visually integrated as the admin tunes the palette.
- Removed: “Border / divider” color picker and the matching divider line in the details panel — one less rarely-changed setting in the General tab, and a cleaner banner layout.
1.5.0
- New: Integration tab now recommends Google Site Kit (Google’s official WordPress plugin) for adding Google Analytics 4 or Google Tag Manager — Site Kit handles Consent Mode v2 natively alongside Kansleri, so no manual GTM snippet, script blocking tweaks, or container ID management is needed. A one-click link takes you straight to the Site Kit install page.
- New: Cookie scanner filters out “browser-only” third-party cookies — when the scanner sees a tracker cookie (GA, Meta Pixel, HubSpot, LinkedIn, Hotjar, Plausible) but the matching script is not actually in the homepage HTML, the cookie is silently dropped. Fixes false positives on subdomain installs where parent-domain cookies (like
_ga) bleed into the admin’s browser even though this site has no tracker. - New: Live banner preview reworked from a fullscreen lightbox into an in-place floating popup — the “Open banner preview” button sits at the top of the General tab, and clicking it shows the banner in its real position (bar at bottom, modal centered, corner at corner). Colors, text, banner style, and typography updates appear in the preview in real time while the form stays editable behind it.
- Improved: Banner preview “Centered modal” variant now positions itself in the actual screen center.
- Improved: Banner preview Customize button toggles the categories panel like the real frontend banner; the panel starts collapsed.
- Improved: Banner preview Necessary-category toggle no longer shows a stray native checkbox alongside the custom toggle UI.
- Improved: Banner preview is automatically disabled when Theme style is selected, with a clear notice that Theme style depends on the frontend theme’s CSS which doesn’t load inside /wp-admin/.
- Improved: Color picker grid in the General tab — each color swatch now shows its purpose label (Banner background, Primary button, etc.) above it.
- Improved: Blocked YouTube iframe placeholder — switched from
hqdefault.jpg(4:3 with baked-in black letterbox bars) tomqdefault.jpg(native 16:9), and added defensive resets so theme styles like.entry-content img { margin: 2em 0; border-radius: 4px; }no longer leak into the thumbnail and create gaps or rounded edges. A subtle radial gradient keeps the message text and Accept button readable against any thumbnail. - Improved: Iframe placeholder mobile layout — tighter padding under 600px and
box-sizing: border-boxon the overlay so the message text no longer overflows the right edge on narrow screens. - Improved: Integration tab copy rewritten for non-technical users — fewer technical terms, clearer recommendations.
- Improved: Removed the now-discouraged
load_plugin_textdomain()call — translations on translate.wordpress.org are loaded automatically by WordPress core.
1.4.0
- New: Empty banner text fields fall back to the visitor’s locale default at render time — each language gets its own locale-appropriate defaults (English by default, Finnish only on the Finnish version). Cleared fields stay empty in the database, so the admin can leave a field empty to “use the default” without the form filling itself back in on save.
- New: Default values shown as placeholders in the admin form so it’s obvious what visitors would see if a field is left empty
- New: Graceful fallback to default-language policy page when a language is missing its own translation (both Polylang and WPML)
- New: Dead policy-page links are no longer rendered — if the selected page is deleted, trashed, or unpublished, the banner omits the link instead of pointing to a 404
- Improved: Admin language notice is clearer — a warning when editing a secondary language (saves target that language only), and an info notice when editing the default language so the active save target is never ambiguous
- Improved: Polylang’s “Show all languages” admin-bar filter is now treated as the default language, including under Polylang’s WPML compatibility mode — no more misleading “language: ALL” warnings
- Improved: WPML policy-page resolution now uses the same default-language fallback logic as Polylang, with explicit publish-status checks for every resolved translation
- Removed: Admin warning about missing policy-page translations (no longer needed, replaced by the graceful fallback)
- Updated: Finnish translations for all new and changed admin strings
1.3.0
- New: Policy page style setting — choose theme or plugin styling for the [kncc_cookie_policy] cookie declaration table
- Improved: Cookie policy table is now mobile-responsive — stacks into card layout on small screens
- Improved: Policy page theme mode adapts to dark and light backgrounds
- Improved: “Edit cookie preferences” button moved to top of policy page
- Fixed: Daily cron check not re-scheduling after plugin updates
- Updated: Finnish translations
1.2.1
- Fixed: Direct file access protection added to uninstall.php
- Updated: Finnish translations for documentation tab strings
1.2.0
- New: Full WPML and Polylang multilingual support — per-language banner texts, cookie descriptions, banner style, colors, and policy page
- New: Per-language cookie descriptions — cookie structure is shared, only descriptions are translatable
- New: AI prompts auto-generate in the current admin language
- Improved: Reliable language detection during AJAX saves for Polylang compatibility
- Improved: Iframe placeholder sizing — proper min-height and no overflow on mobile
- Improved: Documentation tab with multilingual guide, shortcode reference, and iframe blocking docs
- Fixed: Cookie deletion not persisting when saving from a secondary language
- Fixed: Scanner result strings showing mixed languages
1.1.0
- New: YouTube and Vimeo iframe blocking — video embeds are blocked until marketing cookies are accepted
- New:
[kncc_cookie_settings]shortcode to add a cookie settings link anywhere (footer, menu, widgets) - New: Shortcode info box with copy button in admin settings
- Improved: Page reload on “Reject all” to ensure blocked content is properly hidden
- Improved: Server-side consent cookie check to avoid unnecessary placeholders for returning visitors
- Updated: Finnish translations for all new strings
1.0.0
- Initial release