nanoconsent
nanoconsent is a cookie consent banner that is 2,631 bytes gzipped in English — the whole thing, and under 2,750 bytes in every one of its eleven languages. Cookiebot’s stack is 113,994 bytes. The sizes are measured, not claimed, and the measurement script ships with the source. What it does Blocks
nanoconsent is a cookie consent banner that is 2,631 bytes gzipped in English — the whole thing, and under 2,750 bytes in every one of its eleven languages. Cookiebot’s stack is 113,994 bytes. The sizes are measured, not claimed, and the measurement script ships with the source.
What it does
- Blocks known trackers before they load — Google Analytics, Meta Pixel, Hotjar, Clarity, LinkedIn, TikTok and others are marked to wait for consent before the page is sent to the browser. Only scripts it recognises by name; it never guesses, so it cannot break a form, a menu or a cart.
- Holds YouTube, Vimeo, Google Maps, Facebook, Instagram, TikTok, Spotify and X embeds behind a small notice until marketing cookies are allowed. youtube-nocookie.com is not enough, and this handles it.
- Sends all six Google Consent Mode v2 signals, denied by default, updated when the visitor decides. Basic mode by default; advanced mode (Google tags load with signals denied, for conversion modelling) is one checkbox.
- Honours the Global Privacy Control signal — legally binding in twelve US states — records the refusal as proof, and shows “Opt-out signal honored” on the page, as California requires from 1 January 2026.
- Accept and reject buttons are identical in size and colour. Rejecting is one click, on the first layer.
- Stores every decision in your own database — time, choice, categories and text version. No IP address, no fingerprint. Export it as CSV; set a retention period or keep it forever.
- Makes no network requests of its own. Not to us, not to anyone — not even before consent.
- Accessible: a real dialog with a real heading, focus moves in and back out, Escape rejects, no keyboard trap, readable at 400 % zoom. Zero violations in axe-core against WCAG 2.2 AA on every state of the banner, and walked through with NVDA and Chrome by a person on 7 September 2026 — dialog announced on load, every control reachable and readable, focus returns after the choice.
What you see in the admin
- A health check that scans your front page and shows every tracker with its status: waits for consent, or loads before it. It also checks that Consent Mode defaults are set before the first Google tag — the silent misconfiguration that makes reports look fine while consent is ignored.