Linux 软件免费装
Banner图

Lynbro Cookie Consent

开发者 lynbro
更新时间 2026年6月23日 07:28
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

gdpr cookie consent cookie banner cookie notice consent mode

下载

0.4.3

详情介绍:

A free, multilingual and fully configurable cookie consent banner for WordPress. It is GDPR/ePrivacy and Google Consent Mode v2 ready out of the box, with an equally prominent "Reject all" button (in line with Datatilsynet / EDPB guidance) and no pageview or domain limits. Everything runs locally — no account, no cloud, no external requests on the front end. This plugin helps you with cookie compliance but does not constitute legal advice. Source code and issue tracker on GitHub: https://github.com/andrey-tut/lynbro-cookie-consent Free features: Every feature listed here is included for free, with no pageview limits and nothing locked behind a paywall.

安装:

Install From your dashboard (recommended):
  1. Go to Plugins → Add New and search for "Lynbro Cookie Consent".
  2. Click Install Now, then Activate.
Or upload it manually:
  1. Download the .zip and go to Plugins → Add New → Upload Plugin, choose the file and click Install Now, then Activate. (Or extract the folder to /wp-content/plugins/lynbro-cookie-consent and activate it from the Plugins screen.)
It works out of the box On activation the banner goes live immediately with safe, GDPR-ready defaults — an equally prominent "Reject all", all non-essential cookies denied until consent, and Google Consent Mode v2 set to "denied". You do not have to configure anything to be compliant. Everything below is optional fine-tuning under Settings → Cookie Consent. Recommended first steps
  1. Categories — review the consent categories (Necessary, Preferences, Statistics, Marketing) and edit their names/descriptions if you like.
  2. Region mode — choose how consent behaves by region (EU/EEA opt-in, US opt-out / CCPA, rest-of-world notice), or keep the safe opt-in default.
  3. Block your scripts — for trackers added by hand, mark them as <script type="text/plain" data-lynbro-cc="statistics">…</script> (or marketing); well-known trackers (GA4, GTM, Meta Pixel, Hotjar, Clarity, …) are auto-blocked.
  4. Google Consent Mode v2 — if you use Google Analytics/Ads/Tag Manager, leave it enabled; signals default to "denied" and update to the visitor's choice automatically.
  5. Design — pick a layout (bottom/top bar, floating box, center modal), colours and the floating "Cookie settings" button, with a live device-switchable preview.
  6. Languages — 35 languages ship in the box; enable browser auto-detection and the in-banner switcher, or edit texts per language (you can add your own locale too).
Verify Open your site in a private window — the banner should appear. Choose an option, then re-open it via the floating button or the [lynbro_cookie_settings] shortcut to change it. Proof-of-consent records and cookieless statistics appear under Settings → Cookie Consent → Consent Log / Statistics.

屏幕截图:

  • Granular preferences: per-category toggles (Necessary, Preferences, Statistics, Marketing) with clear descriptions.
  • Truly multilingual — automatic browser-language detection and an optional in-banner language switcher, with 35 bundled languages.
  • Admin settings with a live, device-switchable preview (desktop / tablet / mobile) and a one-line WCAG-AA accessibility check.
  • Design tab: ready-made templates, layout (bottom bar, top, floating box, center modal), colours and the floating button — all without code.
  • Private, cookieless statistics in your own database: accept rate per period, devices, operating systems and browser languages — with no IP address and no personal data.

升级注意事项:

0.4.3 Compliance update for the WordPress.org review: tracker blocking no longer emits literal script tags from PHP. No change to behaviour. 0.4.2 Minor admin polish: the Save button no longer appears on tabs that have no editable settings. 0.4.1 Compliance and hardening update: full consent-log CSV export, the Additional CSS field was removed (use the Customizer), and script handling was refactored. 0.4.0 Adds private cookieless statistics, optional benchmark sharing, an in-admin feedback form and language-on-demand. All portal features are opt-in. 0.3.0 Adds cache-safe browser language auto-detection, an in-banner language switcher, a per-language text editor and an About panel. 0.2.0 Adds embed placeholders, Global Privacy Control, light/dark/auto theme, WP Consent API support, a local consent log, automatic tracker blocking and import/export. 0.1.0 Initial release.

常见问题:

Is it really completely free?

Yes. The plugin handles the complete compliance flow — banner, categories, script blocking, Google Consent Mode v2, geo-aware modes, analytics, the consent log and translations — with nothing locked behind a paywall and no pageview limits. There is nothing to buy.

Does it call any external service?

By default the front end makes no third-party requests: the visitor's choice is kept in a first-party cookie, and the optional statistics beacon goes only to your own site (same domain). Three features can contact the Lynbro portal, and all three are opt-in actions you control: benchmark sharing (off by default), the feedback form (only when you click Send) and "request a language" (only when you click Request). Each sends aggregated data only — never a visitor IP or any personal data. See the "External services" section below for full details.

How do I block my analytics/marketing scripts until consent?

Output them as <script type="text/plain" data-lynbro-cc="statistics">...</script> (or marketing). They are activated automatically once the visitor grants that category. A helper function lynbro_cookie_consent_blocked_script() is provided.

Does it support Google Consent Mode v2?

Yes, for free. Signals default to "denied" before consent and are updated to match the visitor's choice.

How does the banner choose its language?

It uses a cache-safe cascade: the current page language (when Polylang, WPML or TranslatePress is active), then your site language, then English. If you enable "auto-detect visitor language", the banner additionally picks the best of your offered languages from the visitor's browser — and that choice is made in the browser, so it never breaks full-page caching. You can also enable an in-banner language switcher. Texts can be overridden per language under Settings → Cookie Consent → Languages, including adding your own locale.

Does it block embedded videos and maps?

Yes. With "Embed placeholders" enabled, iframes from YouTube, Vimeo, Google Maps, social networks, reCAPTCHA and similar providers are blocked until the visitor consents (or clicks "allow" on the placeholder). The detection is local; no external request is made to identify or block an embed.

Does it honor Global Privacy Control (GPC)?

Yes. In opt-out (US/CCPA) mode, visitors whose browser sends a GPC signal are automatically opted out of non-essential cookies and shown a visible confirmation, as required by California from 2026.

Where is the consent log stored?

In a dedicated table in your own WordPress database. No raw IP address is stored; only a salted, anonymised hash is kept for de-duplication. You can view recent records and export the complete log as CSV from Settings → Cookie Consent → Consent Log.

Is it compatible with caching plugins?

Yes. Consent state lives client-side (first-party cookie + JS), so it is never baked into cached HTML, and the consent core is automatically excluded from delay/defer/minify/combine of WP Rocket, LiteSpeed, SiteGround Optimizer, Autoptimize and Cloudflare Rocket Loader.

更新日志:

0.4.3 0.4.2 0.4.1 0.4.0 0.3.0 0.2.0 0.1.0