

The cookie consent banner — tracking scripts stay blocked until the visitor accepts, rejects or customizes.
Cookie Rocket is a lightweight cookie consent plugin that actually blocks third-party tracking scripts until your visitors consent — not just a banner on top. Automatic blocking of Google Analytics, Meta Pixel, Hotjar and more, plus Google Consent Mode v2, a cookie scanner and a consent log, are all included in the free version. Native compliance for GDPR, LGPD (Brazil) and LFPDPPP (Mexico).
It is a fully self-hosted alternative to cloud cookie-consent services: no account, no monthly SaaS fee and no external calls. 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.
[cookie-rocket-preferences] — renders a button that re-opens the cookie preferences modal.[cookie-rocket-withdraw] — renders a link that withdraws consent and clears stored preferences.[cookie_rocket_policy] — renders the automatic cookie declaration table (provider, purpose and duration per cookie, grouped by category).A commercial Pro version adds Google Consent Mode advanced (keeps your Google Ads and GA4 measurement working while consent is denied), a tamper-evident consent ledger with one-click audit evidence, per-visitor legal routing (GDPR in Europe, CCPA in the United States, LFPDPPP in Mexico, LGPD in Brazil), a Latin America pack with a generated aviso de privacidad and a self-hosted ARCO / DSAR rights channel, Google Tag Manager integration, scheduled monthly re-scans with email alerts, CSV export of the consent log and extended log retention. It is available at templatesrocket.com. The free version published here is fully functional and does not require the Pro plugin to work.