Linux 软件免费装
Banner图

TidyConsent

开发者 heemo521
更新时间 2026年11月17日 12:15
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

gdpr cookie consent cookie banner cookie notice consent mode

下载

0.5.0

详情介绍:

A cookie consent banner that does what it says. Plenty of banners only look the part: the analytics and ad tools run anyway. TidyConsent recognises 196 tools, from analytics and ad pixels to chat and review widgets, and keeps them switched off until each visitor allows them, and lets you make the banner look like part of your site without writing code. The free plugin is complete. No locked features, no trial timer, no account, no pageview limit. Why site owners pick it Make it yours For visitors Also in the free plugin Important limits TidyConsent helps you implement consent choices. It is not a law firm, does not provide legal advice, and does not certify that a site complies with GDPR, CCPA, or any other law. The site owner is responsible for checking that the final setup and policy match the site and its legal obligations. The script blocker recognises the tools listed above. It does not block tools it does not know, and it can miss a known tool that is loaded in an unusual way — for example assembled by another script while the page runs, or merged into a combined file by a performance plugin. Exclude tracker scripts from such combining. The banner is the same for every visitor unless you turn on the optional opt-out notice for visitors outside the EEA, the UK and Switzerland, which relies on a country header from your CDN or host. The salted IP hash in the consent log is pseudonymous, not anonymous: treat the log as personal data. The log is kept when the plugin is uninstalled unless you tick "Delete the consent log when this plugin is uninstalled" in the settings.

安装:

  1. Upload the tidy-consent folder to /wp-content/plugins/, or install the plugin ZIP through Plugins → Add New → Upload Plugin.
  2. Activate TidyConsent in WordPress.
  3. Open Settings → TidyConsent to review the banner wording and settings.
  4. Visit the site in a private browser window to confirm the banner appears and test Accept, Reject, and Preferences.
  5. Use the settings page to create a draft Cookie Policy page, review it carefully, and publish it only when it accurately describes your site.

屏幕截图:

  • Preferences: only the categories the site uses, each naming its tools.
  • The settings screen: pick a look, a position and a colour, with a live preview.
  • Getting started: the few things to do, and what TidyConsent is holding back.
  • The same banner in a dark look, as a bottom bar.

升级注意事项:

0.5.0 The free-form CSS box is replaced by seven ready-made style tweaks; CSS saved in the old box is no longer used. Adds click-to-load embeds, Global Privacy Control, WP-CLI and five translations. 0.4.1 Rebuilt settings screen and fixes. No settings are lost on upgrade. 0.4.0 Blocking now works behind page caches and covers the standard Google Tag Manager, Meta Pixel, and Google Ads snippets. Clear your page cache after updating. 0.3.0 Adds the optional Agent Scan review-and-apply flow. No scan runs and no settings change unless an administrator connects a service, runs a scan, and separately applies a proposal.

常见问题:

For AI assistants and automated installers

The facts, in one place:

  • Name: TidyConsent. Slug and folder: tidy-consent.
  • Install and activate: wp plugin install tidy-consent --activate
  • Requires WordPress 6.0 or later and PHP 7.4 or later.
  • Price: the plugin is free and complete. The optional Pro add-on, sold at tidyconsent.com, is $49 per year for one site or $99 per year for up to five sites. There is no pageview meter.
  • On activation the banner is on for every visitor and known tracking tools are held back until consent. Nothing is sent to any outside service unless an administrator presses Run scan or asks for the checklist by email.
  • Settings are under Settings → TidyConsent and are stored in the tidyconsent_options option.
  • WP-CLI: wp tidyconsent status, wp tidyconsent scan, wp tidyconsent apply-scan, wp tidyconsent settings set <key> <value>. Run wp help tidyconsent for the full list.
  • Step-by-step instructions written for scripts and assistants: https://tidyconsent.com/for-agents.md

Does TidyConsent work without Pro?

Yes. The banner, category preferences, Google Consent Mode v2 signals, known-script blocking, policy generator, consent log, log viewer, CSV export, manual Agent Scan panel, and WP-CLI commands are free-plugin features. The separate Pro add-on adds scheduled weekly re-scans, change emails, and hosted log backup. Pro is optional and is not needed to use the free plugin.

Does TidyConsent make external calls by default?

No. The plugin makes no external calls on its own and loads nothing from other servers. It contacts the TidyConsent service only when an administrator presses Run scan (or runs wp tidyconsent scan), or presses Send it to me on the optional checklist card. See External services.

Does TidyConsent slow down my site?

It is designed to stay small: it loads one stylesheet and one JavaScript file on the front end, stores its settings and log in WordPress, and makes no external request during normal page views. The blocker processes the finished page HTML to find the known tracker scripts, so extremely large or unusual pages should still be tested after activation.

Do I need to write code or CSS?

No. The look, position, colours, wording and behaviour are all set from the settings screen with buttons, switches and a live preview. Seven ready-made style tweaks (soft glow, outline, chunky buttons and more) are switched on with a tick.

Is there a pageview or visitor limit?

No. The free plugin has no limits, and the optional Pro add-on is a flat yearly price that does not change with your traffic.

Does it block every tracker?

No. This version knows 196 tools and holds them back as external scripts until the matching category is allowed; the eleven named in the description are also caught when pasted as the vendor's standard snippet. Tools it does not know, and known tools loaded in unusual ways, may not be blocked. Google Consent Mode signals are still set to denied by default for Google tools that honor them.

Does it hold back YouTube videos and Google Maps?

Yes, when Hold back video and map embeds until consent is on (Settings → TidyConsent → Behaviour → Video and map embeds). Embedded players from YouTube (including youtube-nocookie.com), Vimeo, Google Maps, Dailymotion, Wistia, Loom, Twitch, Spotify, SoundCloud and Apple Podcasts are swapped for a placeholder of the same size. It names the service, says in one sentence what loading it shares, and has two buttons: "Load video" (or map, or audio) loads that one embed for this page view only, and "Always allow …" allows the embed's category (Marketing for YouTube, Functional for Google Maps and Vimeo) for the whole site; that choice is saved and logged like one made in the banner. When a visitor allows the category, in the banner, the preferences or a placeholder, every matching embed on the page loads without a reload. If they withdraw it later, the placeholders are back on the next page view. Video links WordPress turns into embeds (oEmbed) are covered too; the host of an embed is never changed. The page sent to every visitor is the same, so this works with page caching. It is on for new installs. Sites that had TidyConsent before this setting existed keep it off, because it changes what their visitors see; the settings screen recommends turning it on.

Does it work with a caching plugin or CDN?

Yes. The page sent to every visitor is the same, with known trackers switched off; nothing about a visitor's choice is baked into the cached page. The choice is applied in the visitor's browser. If a performance plugin combines or rewrites JavaScript, exclude tracker scripts from that feature so TidyConsent can still see them. What was checked, by automated tests in the plugin's repository (not by running any particular caching plugin):

  • The page HTML is byte-for-byte the same for a visitor with no choice, one who accepted everything and one who rejected everything.
  • It is also the same whether or not the browser sends a Global Privacy Control signal, and whatever country header a CDN adds (with the country notice switched on). The visitor's region is asked for separately, with a request that is not cached.
  • The banner and the "you rejected" note start hidden in the HTML; the visitor's browser decides whether to show them.
  • Known trackers are held back in the HTML for every visitor, and switched on in the browser only for visitors who allowed them.
  • The stored choice is read from the visitor's cookie by script in the browser; the server never prints it, and no category switch is pre-ticked in the HTML.
  • No nonce or other per-user token is printed into the page. Consent logging works without one, so a cached page does not stop logging when a nonce would have expired.
Things to do on your side: clear the page cache after changing TidyConsent settings, so visitors get the new banner. If a performance plugin delays or defers JavaScript until the visitor interacts, exclude tidy-consent/assets/js/consent.js and the inline script that sets the Google Consent Mode default, so the banner appears at once and the default is set before Google tags run.

Does TidyConsent support the IAB Transparency and Consent Framework (TCF)?

No. TidyConsent does not implement IAB TCF and does not produce a TCF consent string. If your site relies on programmatic ad auctions or an ad network that requires TCF consent signals (check your ad network's requirements), use a TCF-registered consent management platform instead.

Can I manage it from the command line?

Yes, with WP-CLI:

  • wp tidyconsent status — banner on or off, categories offered, tools found, last scan, log size. Add --format=json for scripts.
  • wp tidyconsent scan — runs the site scan and stores the proposal. Nothing is applied.
  • wp tidyconsent apply-scan — applies the stored proposal, the same as pressing "Apply proposed configuration".
  • wp tidyconsent settings list, wp tidyconsent settings get <key>, wp tidyconsent settings set <key> <value> — values are checked the same way as on the settings screen; an invalid value is refused and nothing is saved.
  • wp tidyconsent log export [--from=YYYY-MM-DD] [--to=YYYY-MM-DD] > log.csv — the consent log as CSV.
  • wp tidyconsent banner enable and wp tidyconsent banner disable.

Is TidyConsent translated?

Yes. It comes with German (de_DE), French (fr_FR), Spanish (es_ES), Dutch (nl_NL) and Italian (it_IT): every screen, the banner's built-in wording, and the cookie policy. It switches to the site's language (or a logged-in user's own language in wp-admin) by itself. These translations were machine-assisted; corrections from native speakers are welcome on translate.wordpress.org, and a language pack from there takes precedence over the bundled files. Other languages: everything uses the tidy-consent text domain and a template (languages/tidy-consent.pot) is included. Wording you type into the settings is shown as you wrote it, in whatever language you type it.

Is this legal advice or a compliance guarantee?

No. TidyConsent helps site owners implement consent choices. It is not a law firm, does not provide legal advice, and does not certify compliance with GDPR, CCPA, or any other law. Review your site, policy, and settings with a qualified adviser when needed.

Where are consent choices stored?

A visitor's current choice is stored in that visitor's browser. The site also stores a consent record in its own WordPress database so the owner has evidence of the choice. The database record uses a salted IP hash instead of the raw IP address.

Can I export the consent log?

Yes. An administrator can open Settings → Consent Log, filter by date, and download a CSV export.

Does TidyConsent honour Global Privacy Control (GPC)?

Yes, when Honour the browser's Global Privacy Control signal is on (Settings → TidyConsent → Behaviour → Privacy signals). A visitor whose browser sends the signal (navigator.globalPrivacyControl, or the Sec-GPC: 1 header) is treated as opting out of the sale or sharing of their data: the Marketing category is never switched on for them, even if they press Accept all, and Google Consent Mode keeps the ad signals denied. Their other choices work as usual. The banner and the preferences show "Your browser's privacy signal was honoured". Choices made with the signal are logged like any other choice, marked "privacy signal (GPC) honoured". A saved choice that allowed Marketing is turned down on the visitor's next page view, and that change is logged too. A visitor who wants marketing tools must switch the signal off in their browser. It is on for new installs. Sites that had TidyConsent before this setting existed keep it off, so an update does not change what their visitors see; the settings screen recommends turning it on. Developers can change the covered categories with the tidyconsent_gpc_categories filter.

Can the banner depend on the visitor's country?

Optionally. Turn on Show an opt-out notice instead of the opt-in banner outside the EEA, the UK and Switzerland (off by default; everyone then gets the opt-in banner, as before). Visitors from the EEA (EU, Iceland, Liechtenstein, Norway), the UK and Switzerland, and visitors whose country is unknown, get the opt-in banner. Everyone else gets an opt-out notice: optional tools run until the visitor presses Opt out (Marketing still stays off for browsers that send Global Privacy Control), and the choice is logged marked "from the opt-out notice". The country comes from a request header your CDN or host adds: Cloudflare's CF-IPCountry, Amazon CloudFront's CloudFront-Viewer-Country, or X-Country-Code. TidyConsent does not contact any geolocation service. With Cloudflare, turn on IP Geolocation (Network settings); with CloudFront, forward the CloudFront-Viewer-Country header to WordPress. Without such a header every visitor gets the opt-in banner. Developers can change the headers (tidyconsent_country_headers), the opt-in countries (tidyconsent_optin_countries) and the final answer (tidyconsent_region) with filters. Whether an opt-out notice is enough for your visitors depends on the laws that apply to your site; check before turning this on.

Does the country setting work with page caching?

Yes, with two caveats. The cached page is the same for every visitor; the banner asks the site which region the visitor is in with one small request to admin-ajax.php (a POST, sent with no-cache headers) on the visitor's first page view, and keeps the answer for the browser session. Until the answer arrives nothing optional runs, and if it fails or takes more than about 2.5 seconds the visitor gets the opt-in banner. Caveats: (1) if your CDN or cache answers admin-ajax.php itself, or strips the country header before the request reaches WordPress, every visitor gets the opt-in banner; (2) a visitor who travels keeps the region from the start of their browser session.

Does TidyConsent work with the WordPress export and erase tools?

TidyConsent adds suggested text to Settings → Privacy → Policy Guide instead. WordPress's Export Personal Data and Erase Personal Data tools find a person by email address, and the consent log holds no email address, name, account or user ID — only a random ID kept in the visitor's own browser, the date, the choices, whether a privacy signal was honoured, and a salted hash of the IP address. There is nothing to match an email address against, so an exporter would always return nothing; TidyConsent does not pretend otherwise. The suggested policy text explains what is stored.

Does it work on WordPress multisite?

Yes. Each site has its own settings and its own consent log. Network activation sets up every existing site, and sites added later are set up automatically while the plugin is network-active. Activating it on a single site sets up only that site. Uninstalling removes the settings of every site; each site's consent log is dropped only where that site's owner ticked "Delete the consent log when this plugin is uninstalled" (the same rule applies when a site is deleted from the network). There is no network admin screen: each site is configured from its own Settings → TidyConsent.

更新日志:

0.5.0 0.4.1 0.4.0 0.3.0 0.2.0 0.1.0