cookieowl

The storybook shelf

Cookie consent guides

Practical, honest guides for LGPD and GDPR cookie consent: blocking Google Analytics until consent, Google Consent Mode v2, React, Next.js and WordPress setups, and a checklist to review your own site. Each one is a short chapter with working code.

Chapter I

The LGPD and GDPR cookie consent checklist

An interactive LGPD and GDPR cookie consent checklist: prior blocking, equal Reject and Accept, no pre-ticked boxes, withdrawal, records and Consent Mode.8 min read
Chapter II

A cookie consent banner for the LGPD, in Portuguese, that really blocks

Add an LGPD cookie banner in Portuguese that blocks trackers before consent, follows the ANPD cookie guide and lets visitors revoke consent at any time.8 min read
Chapter III

What makes a cookie banner GDPR compliant

What makes a cookie banner GDPR compliant: prior blocking, Reject on the first layer, no pre-ticked boxes, easy withdrawal and proof. With a free, open source setup.9 min read
Chapter IV

Google Consent Mode v2 setup, step by step

Set up Google Consent Mode v2: denied defaults with wait_for_update, region defaults, updates on every choice, basic or advanced mode, with gtag.js or Tag Manager.8 min read
Chapter V

How to block Google Analytics until consent

How to block Google Analytics 4 until cookie consent: hold gtag.js and the config as text/plain, catch injected tags with auto mode, and verify it in DevTools.7 min read
Chapter VI

Cookie consent in React, without a provider maze

Add cookie consent to a React app: start cookieowl early, render embeds and analytics with ConsentGate, read choices with the useConsent hook, and block trackers.7 min read
Chapter VII

Cookie consent in Next.js, App Router and Pages Router

Add a cookie consent banner to Next.js: load cookieowl with next/script beforeInteractive, gate Google Analytics and embeds, and read consent in client components.8 min read
Chapter VIII

A free cookie banner for WordPress that blocks before consent

Add a free LGPD and GDPR cookie banner to WordPress without a plugin subscription: load cookieowl in wp_head, block analytics plugins and embeds until consent.7 min read
Chapter IX

A free cookie consent script, with nothing held back

A free, open source cookie consent script with no page view limits or account: one script tag, real blocking, Consent Mode v2, five languages, under 15 kB.7 min read

Hoot suggests

Nothing here. Hoot looked under every cookie jar.