Custom HTML / Any Website
May 18, 2026
This is the universal method. It works on any site where you can edit the HTML.
Steps:
- In ConsentBit, go to Install → Custom HTML and copy your script snippet.
- Open the HTML file (or template) for every page on your site.
- Find the <head> section.
- Paste the ConsentBit script as the first script in the head, before any analytics, ads, or other tracking.
- Save and upload your changes.
- Test in an incognito window.
Why "first in head" is so important: ConsentBit needs to load before any tracking scripts so it can intercept and block them. If Google Analytics loads first, it has already set its cookies before ConsentBit can stop it.
For static site generators (Hugo, Jekyll, Eleventy, Astro, Next.js, etc.), put the script in your base layout / template so it appears in the head of every page.
Frequently asked questions
No items found.
.png)
.png)




