| 开发者 | heemo521 |
|---|---|
| 更新时间 | 2026年11月17日 12:15 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
ad_storage, ad_user_data, ad_personalization, analytics_storage) start as denied and update when a visitor chooses.wp tidyconsent status, scan, apply-scan, settings get|set|list, log export and banner enable|disable.tidy-consent text domain.TidyConsent.hasConsent('analytics') and a tidyconsent:change event.tidy-consent folder to /wp-content/plugins/, or install the plugin ZIP through Plugins → Add New → Upload Plugin.The facts, in one place:
tidy-consent.wp plugin install tidy-consent --activatetidyconsent_options option.wp tidyconsent status, wp tidyconsent scan, wp tidyconsent apply-scan, wp tidyconsent settings set <key> <value>. Run wp help tidyconsent for the full list.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.
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.
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.
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.
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.
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.
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.
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):
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.
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.
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.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.
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.
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.
Yes. An administrator can open Settings → Consent Log, filter by date, and download a CSV export.
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.
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.
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.
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.
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.
wp tidyconsent status, scan, apply-scan, settings get|set|list, log export and banner enable|disable.TidyConsent.hasConsent('analytics') and a tidyconsent:change event.