跳到内容

Cookie Rocket – Cookie Consent Banner & Script Blocker

v2.18.0

templatesrocketwp · 2026年5月28日 上架

Lightweight cookie consent banner that actually blocks trackers until consent. Google Consent Mode v2, cookie scanner — GDPR, CCPA, LGPD & LFPDPPP.

正在使用
90+
评分
5.0 / 5
累计下载
3,347
最近更新
2026年11月18日
1 条评价需要 WordPress 5.9+已测试到 7.1.5PHP 7.4+

截图

The scanner finds the trackers on your site and tells you exactly what happens to each one: blocked until consent, governed by Consent Mode v2, or pasted directly into your HTML — with the switch that fixes it.
The scanner finds the trackers on your site and tells you exactly what happens to each one: blocked until consent, governed by Consent Mode v2, or pasted directly into your HTML — with the switch that fixes it.
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.
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.
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 pseudonymous code made from their IP address and a secret key of your site. The IP address itself is never stored.
The consent log, included in the free version: every decision, the categories accepted, and the visitor identified only by a pseudonymous code made from their IP address and a secret key of your site. The IP address itself is never stored.
Status at a glance — blocking, Consent Mode v2, the law applied, and your consent numbers.
Status at a glance — blocking, Consent Mode v2, the law applied, and your consent numbers.

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 included free, with no pageview limits.

  • Automatic script blocking: common third-party trackers (Google Analytics, Meta Pixel, Hotjar, Microsoft Clarity, LinkedIn, TikTok and more) are blocked until consent, with Google Consent Mode v2 built in.
  • Built-in cookie scanner: on demand, it reads your key pages (home, blog and, with WooCommerce, shop, cart, checkout and account) and detects which known tracking services they load and the cookies they set.
  • Automatic cookie policy / cookie declaration: a single shortcode (or one-click page) publishes a table of the cookies your scans detect and of the services you declare yourself — provider, purpose and duration — grouped by category.
  • Consent audit log with an admin viewer: every consent decision is recorded and browsable for compliance.
  • Editable cookie categories: rename, re-describe and reorder the categories shown on the banner.
  • Unified Cookie Banner editor: layout, content (text and labels) and colors, all in one place.
  • Zero external scripts and zero CDN dependencies — everything is served from your own site.
  • Framework selector: GDPR, CCPA / CPRA, LGPD (Brazil) and LFPDPPP (Mexico), each with its own banner wording and consent behavior.
  • 100% local — no consent data is sent to third-party servers.
  • WooCommerce aware: lists WooCommerce’s necessary cookies in your cookie policy and scans your shop, cart and checkout pages.
  • Fully customizable colors, fonts sizes, copy and banner position.
  • WCAG 2.1 AA accessible: keyboard navigation, focus states, ARIA labels.
  • Multisite compatible.
  • Five banner layouts: bottom bar, top bar, floating card, modal and drawer.

Shortcodes

  • [cookie_rocket_preferences] — renders a button that re-opens the cookie preferences modal.
  • [cookie_rocket_withdraw] — renders a link that withdraws consent and shows the banner again; until the visitor decides anew, only necessary cookies run.
  • [cookie_rocket_policy] — renders the automatic cookie declaration table (provider, purpose and duration per cookie, grouped by category).

External services

This plugin connects to one outside service, and only from your admin, never from your visitors’ browsers:

  • Deactivation feedback (Templates Rocket). When you deactivate the plugin you are offered a short, optional form asking why. Only if you choose a reason and press “Submit & deactivate” does the plugin send it to https://templatesrocket.com/cr-feedback/: the reason, the text you typed (if any), and the Cookie Rocket, WordPress and PHP versions and the site language. No site address, no visitor data and no consent records are sent. Pressing “Skip & deactivate” sends nothing. Provided by Templates Rocket: terms of service, privacy policy.

Cookie Rocket Pro

Cookie Rocket Pro is a commercial extension built on top of the free plugin. It adds:

  • Rules per region. Each visitor gets the law of their country, also behind page caching: GDPR in Europe, CCPA / CPRA in the United States, LFPDPPP in Mexico and LGPD in Brazil, each with its own consent model, Reject button, consent duration and banner text, plus country exceptions. Global Privacy Control is honored.
  • Google Consent Mode advanced and Google Tag Manager. Google Ads and GA4 keep modeling conversions while consent is denied, and the Tag Manager container is added with consent already wired.
  • A tamper-evident consent ledger. Every record is sealed and chained to the previous one, with CSV export and a one-click evidence report.
  • Latin America pack. A generated privacy notice for Mexico and Brazil and a self-hosted ARCO / DSAR rights request channel.
  • A catalog of 76 recognized services covering 340 cookies. Every cookie comes with its purpose and duration already written, so the cookie declaration table fills itself in from a scan. The free version recognizes 34 services; anything else is described by hand under Your own services.
  • A deeper scan, every month. The crawl goes beyond the key pages, and a monthly re-scan emails you when a new tracker appears.
  • Premium styles and finishes. Glass, Branded, Frosted and Frosted Dark styles, a blurred backdrop, border color and thickness, shadow intensity, button text size and weight, spacing, and a reopen button made your way.
  • Decision required and Health mode. The page waits, blurred, until the visitor accepts or rejects — both with the same weight, only where the law asks first. Health mode, for doctors, clinics, dentists, therapists and hospitals, keeps advertising trackers off appointment and patient pages, and keeps what analytics receives from revealing a condition.
  • Updates and support with the license.

Cookie Rocket Pro is available at templatesrocket.com. The free version published here is fully functional and does not require the Pro plugin to work.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums