We’ve officially upgraded ConsentBit with enhanced support for the latest IAB Transparency & Consent Framework (TCF) standards

Custom HTML / Any Website

May 18, 2026

This is the universal method. It works on any site where you can edit the HTML.

Steps:

  1. In ConsentBit, go to Install → Custom HTML and copy your script snippet.
  2. Open the HTML file (or template) for every page on your site.
  3. Find the <head> section.
  4. Paste the ConsentBit script as the first script in the head, before any analytics, ads, or other tracking.
  5. Save and upload your changes.
  6. 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.
Didn’t find your answer?
Contact us here