Title: ConsentLab – GDPR Cookie Consent Banner
Author: consentlab
Published: <strong>2026 年 6 月 29 日</strong>
Last modified: 2026 年 7 月 1 日

---

搜索插件

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

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

# ConsentLab – GDPR Cookie Consent Banner

 作者：[consentlab](https://profiles.wordpress.org/consentlab/)

[下载](https://downloads.wordpress.org/plugin/consentlab.1.3.3.zip)

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

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

## 描述

ConsentLab is a free, privacy-first **cookie consent banner** that helps your WordPress
site meet **GDPR**, ePrivacy and CNIL requirements — without writing a single line
of code.

Install the plugin, connect it to your ConsentLab account in one click, and design
your **cookie notice** in the dashboard. The plugin loads it on your site, **blocks
analytics and marketing scripts until the visitor consents**, records proof of consent,
and keeps your **Google Consent Mode v2** signals in sync — so your Google Analytics
and Google Ads measurement stays compliant.

A lightweight, fast **Consent Management Platform (CMP)** built for real GDPR compliance—
not just a cookie banner.

**Features:**

 * Customizable cookie consent banner (colors, texts, position) designed in the 
   ConsentLab dashboard
 * Native Google Consent Mode v2 — GA4 & Google Ads
 * Automatic script blocking by category (analytics, marketing)
 * Cookies cleared automatically on consent withdrawal
 * Proof-of-consent storage and statistics, hosted in the EU
 * Hide the banner for logged-in administrators
 * Deferred script loading for performance (no jQuery)
 * Free plan available — no credit card required

### External services

This plugin relies on the ConsentLab service to display the consent banner and to
record consent. This connection is required for the plugin to function.

What it does and what data is sent:

 * Loads the banner script from `https://cdn.consentlab.eu/widget/v1/consentlab.
   min.js`.
 * Fetches your banner configuration from `https://api.consentlab.eu` using your
   public API key. The same endpoint is called from your WordPress admin to display
   the connection status (project name and plan).
 * Sends visitors’ consent choices (categories accepted/refused, an anonymised consent
   id and timestamp) to `https://api.consentlab.eu` for consent-proof storage and
   statistics.

The service is provided by ConsentLab.

 * Terms of Service: https://consentlab.eu/fr/cgu
 * Privacy Policy: https://consentlab.eu/fr/politique-confidentialite

## 屏幕截图

[⌊Plugin settings — connected to a ConsentLab project.⌉⌊Plugin settings — connected
to a ConsentLab project.⌉[

Plugin settings — connected to a ConsentLab project.

[⌊Onboarding when the plugin is not connected yet.⌉⌊Onboarding when the plugin is
not connected yet.⌉[

Onboarding when the plugin is not connected yet.

[⌊The consent banner on a website.⌉⌊The consent banner on a website.⌉[

The consent banner on a website.

[⌊Banner customization in the ConsentLab dashboard.⌉⌊Banner customization in the
ConsentLab dashboard.⌉[

Banner customization in the ConsentLab dashboard.

## 安装

 1. Upload the plugin files to `/wp-content/plugins/consentlab/`, or install the plugin
    through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Go to Settings > ConsentLab.
 4. Click “Connect with ConsentLab” — sign in (or create a free account), pick the 
    project for this site, and the API key is configured automatically.

Alternatively, you can set it up manually: create a project at https://app.consentlab.
eu, copy its API key, paste it in the plugin settings and save.

## 常见问题

### Do I need a ConsentLab account?

Yes. The banner configuration (design, texts, cookie categories) is managed in the
ConsentLab dashboard. A free plan is available — no credit card required.

### Where are consent choices stored?

Consent choices are stored on ConsentLab’s servers in the European Union, as proof
of consent required by GDPR. No personal data such as IP addresses is stored with
the consent record.

### Does the plugin slow down my site?

No. The banner script is a small file served from a CDN and is deferred by default,
so it does not block page rendering.

### Can I use the plugin on a staging site?

Yes. Endpoints can be overridden with the `CONSENTLAB_API_BASE`, `CONSENTLAB_CDN_URL`
and `CONSENTLAB_DASHBOARD_URL` constants in `wp-config.php` (see the Environment
panel in the plugin settings).

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ consentlab ](https://profiles.wordpress.org/consentlab/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.3.3

 * Expanded the plugin description with clearer feature highlights (cookie banner,
   GDPR/CCPA consent, Consent Mode v2) — no functional change.

#### 1.3.2

 * Clearer plugin name and description, and refined tags to help you find it — no
   functional change.

#### 1.3.0

 * One-click “Connect with ConsentLab”: sign in, pick your project and the API key
   is configured automatically — no more copy-paste (secure OAuth Authorization-
   Code + PKCE flow).
 * Manual API key entry is still available as a fallback.

#### 1.2.0

 * Live API key validation: the connection is now checked as you type, before saving.
 * “Customize banner” now links straight to your project’s banner editor.
 * Added a confirmation that the banner is live, with a link to view your site.

#### 1.1.1

 * Internal: widget asset renamed cookie-cmp.min.js -> consentlab.min.js (brand 
   consistency)

#### 1.1.0

 * Renamed plugin slug and text domain to `consentlab` (options are migrated automatically).
 * New settings screen: branded header, live connection status (project name and
   plan), onboarding for new users, quick links.
 * Banner can be hidden for logged-in administrators.
 * Endpoints overridable via constants, options or filters (staging support).
 * Widget is now loaded through wp_enqueue_script with optional defer strategy.

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.3.3**
 *  最后更新：**4 天前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.3 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/consentlab/)
 * 标签
 * [consent mode](https://cn.wordpress.org/plugins/tags/consent-mode/)[cookie banner](https://cn.wordpress.org/plugins/tags/cookie-banner/)
   [cookie consent](https://cn.wordpress.org/plugins/tags/cookie-consent/)[cookies](https://cn.wordpress.org/plugins/tags/cookies/)
   [GDPR](https://cn.wordpress.org/plugins/tags/gdpr/)
 *  [高级视图](https://cn.wordpress.org/plugins/consentlab/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ consentlab ](https://profiles.wordpress.org/consentlab/)

## 支持

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

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