Title: Konsentra &#8211; Cookie Consent Banner
Author: Gunjan Jaswal
Published: <strong>2026 年 8 月 6 日</strong>
Last modified: 2026 年 8 月 7 日

---

搜索插件

![](https://ps.w.org/konsentra/assets/banner-772x250.png?rev=3637215)

![](https://ps.w.org/konsentra/assets/icon-256x256.png?rev=3636967)

# Konsentra – Cookie Consent Banner

 作者：[Gunjan Jaswal](https://profiles.wordpress.org/gunjanjaswal/)

[下载](https://downloads.wordpress.org/plugin/konsentra.1.0.3.zip)

 * [详情](https://cn.wordpress.org/plugins/konsentra/#description)
 * [评价](https://cn.wordpress.org/plugins/konsentra/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/konsentra/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/konsentra/#developers)

 [支持](https://wordpress.org/support/plugin/konsentra/)

## 描述

Konsentra gives your visitors a clear choice about the cookies your site uses, and
helps you stay on the right side of GDPR and the ePrivacy rules. It ships with a
clean, customisable banner, granular cookie categories, and a script blocker that
holds tracking code back until someone actually agrees to it.

No account, no external service, no phoning home. Everything runs on your own site.

**What you get**

 * A responsive consent banner you can drop in at the top, bottom, or in a corner
 * Accept all, reject all, and a preferences panel for per-category control
 * Four cookie categories out of the box: strictly necessary, functional, analytics,
   and marketing
 * Automatic blocking of tagged scripts until the matching category is granted
 * Full control over colours, text, and button labels, with a live WordPress colour
   picker
 * A shortcode so visitors can reopen their preferences whenever they like
 * Optional, anonymised consent logging (hashed IP only, never a raw address)
 * Translation ready, with a bundled .pot file
 * Clean uninstall that removes everything it created

**Blocking your own scripts**

Tag any script you want held back until consent like this:

    ```
    <script type="text/plain" data-cp-category="analytics" src="https://example.com/tag.js"></script>
    ```

When the visitor grants the “analytics” category, Konsentra swaps it for a real 
script tag and runs it. The same works for inline scripts and for the `functional`
and `marketing` categories.

**Developer hooks**

A `konsentra:updated` event fires on `document` every time consent changes, so your
own code can react:

    ```
    document.addEventListener( 'konsentra:updated', function ( e ) { console.log( e.detail ); } );
    ```

## 屏幕截图

[⌊The consent banner as visitors first see it.⌉⌊The consent banner as visitors first
see it.⌉[

The consent banner as visitors first see it.

[⌊The preferences panel with per-category toggles.⌉⌊The preferences panel with per-
category toggles.⌉[

The preferences panel with per-category toggles.

[⌊The settings screen in the WordPress admin.⌉⌊The settings screen in the WordPress
admin.⌉[

The settings screen in the WordPress admin.

## 安装

 1. Upload the `konsentra` folder to `/wp-content/plugins/`, or install it from the
    Plugins screen in your dashboard.
 2. Activate the plugin through the Plugins menu in WordPress.
 3. Go to Settings, then Konsentra, to set your text, colours, and categories.
 4. Tag any third-party scripts you want to gate behind consent (see the Description).

## 常见问题

### Does this make my site GDPR compliant on its own?

No plugin can do that by itself. Konsentra gives you the consent banner, category
controls, and script blocking you need, but compliance also depends on your privacy
policy, how you handle data, and the services you use. Treat it as one important
piece, not the whole picture.

### Does it block Google Analytics or Facebook Pixel automatically?

It blocks any script you tag with `type="text/plain"` and a `data-cp-category` attribute.
Add that markup to the scripts you want gated and they will only load once the visitor
consents.

### Does it store personal data?

Only if you switch on consent logging, and even then it stores a hashed IP address,
never the real one, along with a timestamp and the categories agreed to.

### Is it translation ready?

Yes. A `.pot` file is included in the `languages` folder and every string uses the`
konsentra` text domain.

### How do visitors change their choice later?

Add the `[konsentra_settings]` shortcode anywhere, for example in your footer or
privacy page, and it renders a link that reopens the preferences panel.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Konsentra – Cookie Consent Banner」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Gunjan Jaswal ](https://profiles.wordpress.org/gunjanjaswal/)

[帮助将「Konsentra – Cookie Consent Banner」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/konsentra)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/konsentra/)，查看[SVN仓库](https://plugins.svn.wordpress.org/konsentra/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/konsentra/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/konsentra/)。

## 更新日志

#### 1.0.3

 * Housekeeping: refreshed the icon, banner, and screenshots. No functional changes.

#### 1.0.2

 * Housekeeping: refreshed the plugin directory assets. No functional changes.

#### 1.0.1

 * Brightened the banner message text for better readability on the dark background.

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.0.3**
 *  最后更新：**2 天前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.8 或更高版本 **
 *  已测试的最高版本为 **7.0.3**
 *  PHP 版本 ** 7.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/konsentra/)
 * 标签
 * [consent](https://cn.wordpress.org/plugins/tags/consent/)[cookie banner](https://cn.wordpress.org/plugins/tags/cookie-banner/)
   [cookie consent](https://cn.wordpress.org/plugins/tags/cookie-consent/)[GDPR](https://cn.wordpress.org/plugins/tags/gdpr/)
   [privacy](https://cn.wordpress.org/plugins/tags/privacy/)
 *  [高级视图](https://cn.wordpress.org/plugins/konsentra/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/konsentra/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/konsentra/reviews/)

## 贡献者

 *   [ Gunjan Jaswal ](https://profiles.wordpress.org/gunjanjaswal/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/konsentra/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://ko-fi.com/gunjanjaswal)