Skip to content
arrie.dev Templates

Components

Consent Gate

A cookie notice that actually holds analytics back until someone agrees.

R550

Once. Yours to keep

Get this template

The shape of it, not a screenshot

What it is

Most cookie banners are decoration. The tracking script has already run by the time the banner paints. This one loads nothing first. Scripts are declared as type="text/plain" with a category attribute, and the gate swaps them in only once that category has been accepted.

Three categories are set up out of the box, necessary, analytics and marketing, each toggled separately in a preferences panel. Reject sits next to accept at the same size and prominence. The choice is stored in a first-party cookie with a version number, so raising the version re-asks everyone when the cookie list changes. There is a cookie table for you to fill in and a link that reopens preferences from the footer.

This is plumbing, not legal advice. It gives you a mechanism that honours a choice. Whether your setup satisfies POPIA or GDPR is between you and whoever advises you on that. Wrong choice if you already pay for a consent platform, because you would be running two.

Included

What you get

  • Banner and separate preferences panel
  • Script gate that holds tagged scripts until consent
  • Three categories, each toggled on its own
  • Versioned choice in a first-party cookie
  • Reopen-preferences link for the footer
  • Cookie table ready for your entries
How it works

After you buy

  1. 01 You message me On WhatsApp. Tell me which one and where it is going.
  2. 02 I set it up for you Your words, your colours, your logo dropped in — or the raw files if you would rather do it yourself.
  3. 03 It goes live On your hosting or on mine. Either way it ends up in your own account.
  4. 04 It is yours The whole thing, with nothing to renew and nothing tied back to me.