Website builder · Install guide
Cookie consent for HTML website
Updated
Any site you can edit HTML on can run Kiescy: paste one script tag at the top of <head> on every page.
- Setup time
- About 10 minutes
- Coding
- One line in your layout
- Laws covered
- GDPR, UK GDPR, CCPA, DPDP
- Google Consent Mode v2
- Built in, basic or advanced
Set up cookie consent on HTML website in 3 steps
- Create a free accountAdd your website. Kiescy scans it and finds the trackers that need consent.
- Paste one script into HTML websiteYour banner appears and starts holding back trackers until visitors choose.
- Check it worksOpen your site in a private window and run the free check to confirm nothing loads early.
Why HTML website sites need cookie consent
Plain HTML sites, from small business pages to static generators, still load Google Analytics, pixels and embeds. A single script in the head is all it takes to ask EU visitors first.
Your options on HTML website
| Approach | Good for | Watch out for |
|---|---|---|
| A free banner script from a code snippet site | Notices only | Usually doesn't block anything or keep records |
| Kiescy | Any site you can edit | Add it to every page's head |
Add your privacy policy
<div data-kiescy-doc="privacy"></div>
<script src="https://script.kiescy.com/embed/policy/YOUR_SITE_KEY.js" async></script>Check that it works
Open your site in a private window: the banner should appear for a first-time visitor. Then run the free privacy check, which opens your site as a new EU visitor and lists anything that still loads before consent.
Kiescy's monitoring repeats that check on a schedule and emails you if a new script starts tracking before consent.
What your HTML website visitors see
Kiescy detects where each visitor is and shows the version their law requires, so you don't have to choose between the strictest banner for everyone and no banner at all.
Trackers HTML website sites usually load
These are the tools that most often need consent on HTML website sites, and how Kiescy treats them. Run a cookie scan to see exactly what yours loads.
| Tool | Category | What happens |
|---|---|---|
| Google Analytics 4 (gtag.js) | Analytics | Held back once your cookie scan finds it |
| Meta Pixel | Advertising | Held back once your cookie scan finds it |
| Hotjar, Microsoft Clarity | Analytics | Held back once your cookie scan finds it |
| Any other script | Your choice | Use type="text/plain" with data-pira-category |
Google Consent Mode v2 on HTML website
Put your Google tag after the Kiescy script. Kiescy sets the Consent Mode v2 defaults before it loads and updates them when visitors choose.
New to Consent Mode? Read basic vs advanced Consent Mode v2.
Troubleshooting
The banner shows on some pages but not others
The script must be on every page. If your pages don't share a header template, add it to each HTML file.
A script I marked text/plain never runs
Check the category name is one of analytics, advertising, performance or social, and that the visitor allowed that category.
Compliance checklist for HTML website
- A consent banner that blocks non-essential trackers until the visitor agrees (opt-in for the EU, UK and India).
- A "Do Not Sell or Share" option for California visitors, and Global Privacy Control honored.
- A privacy policy that names the tools above, linked from every page.
- A cookie policy listing the cookies your scan finds.
- A way for people to request, correct or delete their data.
- Records of each consent choice, kept as proof.
- Link your privacy and cookie policies in the footer of every page.
Guides for HTML website site owners
Questions
Is it free?
Kiescy is free during early access. See pricing for details.
How do I add a 'Cookie settings' link?
Add a link that calls window.pira.open(), for example <a href="#" onclick="pira.open();return false">Cookie settings</a>.
Do I need to change my existing tracking code?
Usually not. Run a cookie scan and Kiescy holds back the trackers it finds; add a blocking rule or use the text/plain change for anything else.
Official HTML website documentation
Menus move. If a step above doesn't match what you see, HTML website's own docs show the current way to add code.
Get compliant this afternoon, not this quarter.
Set up your policies, banner and request form in one place. Free while Kiescy is in early access.