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

---

搜尋外掛

![](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.4.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/konsentra/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/konsentra/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/konsentra/#installation)
 * [開發資訊](https://tw.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.4

 * Fixed the “Translation loading was triggered too early” notice in the debug log.
   The banner was being built on plugins_loaded, and reading its default wording
   asked WordPress for translations before it was ready to serve them. It now waits
   for init, which is where WordPress expects this to happen.
 * No change to the banner, your settings or anything on the front end. If you run
   with WP_DEBUG on, your log just gets a lot quieter.

#### 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.4**
 *  最後更新 **1 個月前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 5.8 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.1.2**
 *  PHP 版本需求 ** 7.2 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/konsentra/)
 * 標籤:
 * [consent](https://tw.wordpress.org/plugins/tags/consent/)[cookie banner](https://tw.wordpress.org/plugins/tags/cookie-banner/)
   [cookie consent](https://tw.wordpress.org/plugins/tags/cookie-consent/)[GDPR](https://tw.wordpress.org/plugins/tags/gdpr/)
   [privacy](https://tw.wordpress.org/plugins/tags/privacy/)
 *  [進階檢視](https://tw.wordpress.org/plugins/konsentra/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](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)