Linux 软件免费装
Banner图

Kansleri Cookie Consent

开发者 kansleri
tapiokansleri
更新时间 2026年3月25日 23:28
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

privacy gdpr cookie consent cookie banner google consent mode

下载

1.0.0 1.1.0 1.2.0 1.2.1 1.3.0

详情介绍:

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:

安装:

  1. Upload the kansleri-cookie-consent folder to the /wp-content/plugins/ directory, or install directly through the WordPress plugin screen.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Navigate to Settings > Cookie Consent to configure the banner.
  4. Use the Cookies tab to scan your site and register cookies.
  5. Publish the auto-created cookie policy page or add the [kncc_cookie_policy] shortcode to any page.

屏幕截图:

  • 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

常见问题:

Does this plugin support Google Consent Mode v2?

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.

How does the cookie scanner work?

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.

Does it work with WPML or Polylang?

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.

Does it work with Google Site Kit?

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.

Does it work with WP Consent API?

Yes. When the WP Consent API plugin is active, consent status is automatically shared with other plugins that support the API.

How are consent statistics tracked?

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.

Does it block YouTube and Vimeo embeds?

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.

How do I add a cookie settings link to my footer?

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.

What happens when the plugin is uninstalled?

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.

更新日志:

1.3.0 1.2.1 1.2.0 1.1.0 1.0.0