Linux 软件免费装
Banner图

Cookie Rocket, Cookie Consent Banner and Script Blocker for GDPR, CCPA and LGPD

开发者 templatesrocketwp
更新时间 2026年10月31日 06:37
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

cookie consent cookie banner consent mode consent mode v2 lfpdppp

下载

2.14.0 2.1.8 2.15.17 2.16.3 2.15.0 2.16.6 2.2.0 1.4.0 2.8.0 1.7.0 2.15.7 1.1.0 1.1.2 1.2.0 1.5.0 1.6.0 1.8.0 1.8.1 2.0.0 2.1.0 2.1.4 2.1.9 2.10.0 2.11.1 2.11.2 2.12.0 2.4.0 2.5.0 2.5.1 2.6.0 2.6.1 2.7.0 1.0.0 1.0.2 1.9.1 2.1.5 2.16.7 2.1.2 2.1.6 2.11.3 2.3.0 1.0.1 1.1.1 2.12.1 2.1.3 2.1.7 2.13.0 2.14.3 2.15.1 2.15.2 2.15.3 2.15.4 2.15.6 2.9.0 1.9.0 2.1.1 2.15.8 2.15.9 2.11.0 2.15.10 2.15.11 2.15.12 2.15.13 2.15.14 1.8.2 2.15.5 1.0.3 1.0.4 1.3.0 2.14.10 2.15.15 2.16.1 2.16.4 1.0.5 2.15.16 2.16.0 2.16.2 2.16.5 2.17.0 2.9.1

详情介绍:

Cookie Rocket is a WordPress cookie consent banner that blocks Google Analytics, Meta Pixel, Hotjar and other third-party tracking scripts until the visitor consents, with Google Consent Mode v2, a cookie scanner and a consent log included in the free version. It is for any site that has to comply with GDPR, CCPA / CPRA, LGPD (Brazil) or LFPDPPP (Mexico), each with its own banner wording and consent rules, selectable per site. It is a fully self-hosted alternative to cloud cookie-consent services: no account, no monthly SaaS fee, and your visitors' browsers never call an outside server. Real script blocking, Google Consent Mode v2 and on-demand cookie scanning are free here — features that comparable consent tools typically gate behind a paid plan or a remote service. Shortcodes

安装:

  1. Upload the cookie-rocket folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Go to Cookie Rocket in the admin menu and answer one question: where your visitors come from. Nothing changes on your site until you answer; then the banner, the blocking and your cookie policy start in one click.
  4. Optionally, place the [cookie-rocket-preferences] shortcode in your privacy policy page to let visitors update their choices at any time.

屏幕截图:

  • The consent banner on a live site. Google Analytics, Meta Pixel and Hotjar stay blocked until the visitor chooses; the reject button sits on the first layer, one click away.
  • Granular preferences: visitors allow or deny each category, with strictly-necessary always on.
  • The consent log, included in the free version: every decision, the categories accepted, and the visitor identified only by a one-way hash.
  • Status at a glance — blocking, Consent Mode v2, the law applied, and your consent numbers.

升级注意事项:

2.17.0 The privacy notice link closes the banner text instead of taking a column of its own, and the preferences dialog keeps its buttons whole in every language. Settings are kept. 2.16.7 Rules that fit where your visitors are, and Status shows what Google Analytics can count and since when. Existing sites keep working and keep their settings until they apply the recommended rules from Status. 2.16.6 The Side panel becomes a full preference center, the consent log can find a person's records by consent ID or IP address, and the first custom service is saved correctly. Recommended for every site. 2.16.5 The reopen button is now off unless you turn it on, deleting the plugin keeps your consent log unless you choose otherwise, and a rejected tracker stops at once. Recommended for every site. 2.16.4 Script blocking now holds every part of a tracker until consent, rejecting clears the cookies of every recognized service, and the preferences checkboxes stay visible on dark banners. Recommended for every site. 2.16.3 Page caches can store your pages again, Reject and Accept are equal on every screen, the opt-out model works, and consent records are never deleted before the consent they prove expires. 2.16.2 The preferences dialog no longer overlaps the banner on phones and tablets, its buttons are never cut off, and checkmarks sit centered. Admin fixes for phones, keyboards and screen readers. 2.16.1 An em dash in the consent log meaning "no categories" was drawn at 1.97:1 contrast, below the 4.5:1 WCAG AA asks for. Fixed. The admin palette is now twenty-eight named values instead of fifty-six hand-written colors; five near-identical grays were merged. 2.16.0 The scanner now recognizes 34 third-party services instead of 9, including reCAPTCHA, Jetpack Stats, live-chat widgets, share buttons and embedded Instagram, Spotify and Twitch. It also stops reporting the Facebook SDK as the advertising pixel. Run the scanner again. 2.15.17 The scanner never checked whether it had actually loaded your pages: an error page was read as your site and reported as "0 trackers detected", and that empty result could blank a published Cookie Policy. Both fixed. 2.15.6 Thorough audit: keyboard-focus fixes, hardened consent-endpoint rate limiting, reliable recording behind full-page caches, embeds that restore after consent, a closed script-blocking gap, timezone-correct log stats, and complete Spanish/Portuguese. No settings change. 2.14.0 A cleaner four-section admin, a one-time setup guide, and a new option to match the banner to your site's own font — with no external fonts ever loaded. All your settings carry over. 2.13.0 Accessibility and design pass: zero automated WCAG AA violations across the admin, visible field borders, and a save that tells you when it fails instead of losing your changes silently. 2.12.1 Accessibility fix: the banner's Reject and Customize buttons are now clearly legible (WCAG AA), as visible as Accept all. 2.12.0 Pick your law (GDPR/LGPD/LFPDPPP) in Settings and the banner's default legal text follows it — new installs detect it from the site language. Also fixes the framework resetting to generic on save. 2.11.2 Polish & fixes from a full audit: correct consent-duration in the cookie policy, modal description now shows, working privacy-policy link, salted (irreversible) IP hashes, and broader WordPress compatibility. No settings change. 2.11.1 Fixes consent texts being cut off at 200 characters (the GDPR/LFPDPPP templates were truncated). After updating, re-pick your template or re-save to store the full message. 2.11.0 Adds an opt-in "Quick feedback" prompt on deactivation. Skipping sends nothing; no personal data is ever collected. Your settings and banner are unchanged. 2.1.4 Fixes button readability and form spacing in the admin. Native, clean WordPress styling. No changes to settings or the banner. 2.1.3 Cleaner Settings and Banner Design screens (sub-navigation + accordions) and a fully neutral monochrome admin. Your settings and banner are unchanged. 2.1.2 A calmer, neutral admin palette (standard WordPress blue and grays). No changes to settings or the banner. 2.1.1 A cleaner, guided dashboard that makes setup obvious. Your settings and banner are unchanged. 2.1.0 Adds a compliance health dashboard, a visual banner layout picker, neutral style presets, click-to-load embed placeholders and a refreshed cookie scanner. Your saved settings are unchanged. 1.9.1 Adds a Brazilian Portuguese translation, auto-applied on Portuguese-language sites. No other changes. 1.9.0 Internationalization: English is now the default language, with a bundled Spanish translation auto-applied on Spanish sites (all es_* locales). Your saved banner copy and categories are unchanged. 1.8.2 Documentation and listing copy only — no code changes. 1.8.1 Housekeeping only: removes an unused legacy stylesheet that was never loaded. No change to the banner. 1.8.0 The "Drawer" banner layout is now a distinct right-side panel (it previously matched the floating card). Only affects sites using the Drawer layout; other layouts are unchanged. 1.7.0 Adds a live banner preview on the Banner Design screen. Safe update; no change to the banner shown to visitors. 1.6.0 New Categories editor lets you rename, re-describe and reorder the cookie categories shown on the banner. Safe update; existing categories are unchanged until you edit them. 1.5.0 The admin screens are now fully translatable. No visible change; safe update. 1.4.0 New Consent Log viewer under Cookie Rocket → Consent Log shows recorded consents for compliance. Safe update; read-only, no change to the banner. 1.3.0 Translation readiness: the banner and modal strings are now fully translatable and a complete .pot is included. No visible change by default; translate via Loco Translate, WPML/Polylang or translate.wordpress.org. 1.2.0 New Cookie Scanner under Cookie Rocket → Scanner: detects known tracking services on your site on demand and shows what is being blocked. Safe update; no change to the banner or blocking behavior. 1.1.2 Robustness fix: default categories and settings now self-heal if missing, so the preferences modal and "Accept all" work even on installs where activation never ran. Recommended. 1.1.1 Important fix for 1.1.0: "Accept all" and the preferences modal now correctly enable the chosen categories, so scripts blocked before consent are re-activated when the visitor accepts. Recommended for everyone on 1.1.0. 1.1.0 Major update: Cookie Rocket now actually blocks common tracking scripts (Google Analytics, Meta Pixel, Hotjar and more) until consent, with Google Consent Mode v2 built in. Review Settings → Script Blocking after updating, especially if you use a caching plugin. 1.0.5 Correctness fixes: custom banner copy and consent duration set in Settings are now actually applied, and the consent audit log records events again. Recommended update; the banner looks the same by default. 1.0.4 Post-consent floating button now defaults to OFF for a cleaner site. Installs that explicitly enabled it keep it enabled; re-enable any time in Settings. The [cookie-rocket-preferences] shortcode is always available as alternative. 1.0.3 Important fix: the preferences modal can now be closed (X button) after consent, the title typography no longer inherits the theme's heading font, and the floating button can be hidden via a new setting. Recommended update. 1.0.2 Adds a Pro features showcase panel at the bottom of the Settings page. Safe to update — no functional changes to the cookie banner itself. 1.0.1 Visual refresh only. Brand-aligned colors in the preferences modal. Safe to update. 1.0.0 First public release.

常见问题:

Does this plugin send any data to external services?

Not about your visitors. Cookie Rocket stores consent in the visitor's browser (cookie + localStorage) and logs events to your own WordPress database; your visitors never generate a request to an outside server. The one exception is in your admin and only if you choose it: the optional feedback form shown when you deactivate the plugin. See "External services" below.

Why does Google Analytics show fewer visits after installing a consent banner?

Because a banner that really blocks keeps Google Analytics off until the visitor's law allows it: where visitors must be asked first, those who do not answer or say no are not counted. They are still on your site; Analytics just cannot see them. Cookie Rocket tells you before it starts, in the answer you choose, and Status → Reach Google Analytics shows how many of every 100 page views reach Analytics, why the rest does not, how to measure more where the law allows it, and the date of every change to your rules, so a drop can be matched to its cause. That figure comes from an anonymous daily count on your own site: no cookie, no IP address and no identifier is stored.

Is it compatible with caching plugins?

Yes. The banner state is read from a first-party cookie, so caching (page cache, object cache, CDN) does not interfere with consent storage or display.

Does it block third-party scripts automatically?

Yes. The free version automatically blocks the most common third-party tracking scripts — Google Analytics, Meta (Facebook) Pixel, Hotjar, Microsoft Clarity, LinkedIn, TikTok, Google Ads and more — until the visitor accepts the matching cookie category, and it ships Google Consent Mode v2 (default denied) out of the box. Enqueued scripts are blocked by default; an optional setting also blocks scripts pasted directly into your theme or header. Cookie Rocket Pro adds scheduled monthly re-scans that email you when a new tracker appears, plus Google Consent Mode advanced, so Google can model the visits and conversions it loses to non-consent.

Is it a real GDPR cookie consent plugin, or just a cookie notice?

A real one. A cookie notice only tells visitors that the site uses cookies; Cookie Rocket stops the trackers. With GDPR selected, Google Analytics, Meta Pixel, Hotjar and the other optional trackers stay blocked until the visitor accepts, the Reject button sits on the first layer next to Accept, and every decision is saved in the consent log as proof. LGPD (Brazil) works the same way.

Does it work for CCPA / CPRA in the United States, and for LFPDPPP in Mexico?

Yes. Select CCPA / CPRA or LFPDPPP and the banner uses that law's wording. Both laws allow opt-out, so you choose: cookies run until the visitor rejects, or the banner asks first. Visitors from the United States and the EU on the same site? Cookie Rocket Pro applies each region its own rules: opt-out for the United States, opt-in for the EU.

Is it translation-ready?

Yes. The text domain is cookie-rocket and a complete .pot file is included under /languages/. All banner and modal strings are wrapped for translation. The plugin ships in English by default with Spanish (es_ES) and Brazilian Portuguese (pt_BR) translations bundled, applied automatically on matching locales. WordPress also loads community translations for plugins hosted on WordPress.org, and you can translate the banner yourself with Loco Translate or Poedit, or via WPML/Polylang.

Can it generate a cookie policy page?

Yes. Add the [cookie_rocket_policy] shortcode to any page, or go to Cookie Rocket → Cookie Policy and create the page in one click. It publishes a cookie declaration table — each cookie with its provider, purpose and duration, grouped by category — built from your latest scan plus a built-in catalog of the most common third-party cookies. Strictly-necessary cookies are always listed, and the table updates automatically as you re-scan.

Does it work on WordPress Multisite?

Yes. Each site stores its own settings. Activate per-site or network-activate from the network admin.

更新日志:

2.17.0 A cleaner banner, and a preferences dialog that holds in every language. 2.16.7 Rules that fit where your visitors are. A new install asks "Where do your visitors come from?". From several countries, the recommended answer, visitors in the EU, the EEA, the UK, Switzerland and Brazil are asked first under their own law, and everyone else is measured from their first visit with Reject on screen. The country comes from the visitor's time zone, in their browser, so it works behind a page cache. 2.16.6 Older release notes are available in the plugin’s development history on WordPress.org.