The banner stores the choice in each visitor's browser and only loads the scripts they accept. It doesn't scan your site or keep a consent log: if your site needs that, ask a professional.
A good-looking cookie banner in a minute
Choose a bar, a corner card or a centered window, tap a palette or enter your brand color, and pick the language. The preview shows the banner exactly as your visitors will see it, on desktop or mobile, on a light or dark site.
What the code does
It shows the banner on the first visit, stores the choice in the browser and doesn't load statistics or marketing scripts until the visitor accepts them. If you turn on Google Consent Mode v2, it tells Google Analytics and Google Ads about every choice. The 🍪 button lets visitors change their mind at any time, and the banner asks again after 6 or 12 months.
What it doesn't do
It doesn't scan your site for cookies or keep a record of consents on a server. For a personal site, a portfolio or a small store that's usually enough; for large sites or sites with many vendors, a consent management platform is a better fit.
Frequently asked questions
Is it GDPR compliant?
It follows the basic rules: optional scripts don't load until the visitor accepts, the "Reject" button is as visible as "Accept", visitors can choose by category and change their choice at any time. Still, every site is different: if in doubt, ask a professional.
What is Google Consent Mode v2?
It's how Google Analytics and Google Ads know whether a visitor accepted cookies. It's required to measure and advertise with Google in the European Economic Area. The code tells Google about every choice automatically.
How do I block a script until consent?
Change its tag to type="text/plain" and add data-cookies="statistics", data-cookies="marketing" or data-cookies="preferences". The banner will run it only if the visitor accepts that category.
Does it work on WordPress, Shopify or Wix?
Yes. Paste the code wherever your platform lets you add code to the head (on WordPress, with a header plugin or in your theme). No external libraries or account needed.
Can I change the texts?
Yes. Choose the banner language from 31 languages, and if you want different wording, edit the sentences right in the code you copy: they're at the top, in quotes.