Comply with EU and global consent laws

To comply with EU and other global opt-in laws, your website must:

  • Show a consent dialog before setting non-essential cookies
  • Block all non-essential scripts by default
  • Provide clear and granular consent options
  • Allow users to withdraw consent at any time

How you configure this depends on whether you are setting up a new domain or updating an existing one.


Recommended setup for new domains

When creating a new domain in the CookieHub dashboard:

  • Select Default (Explicit consent) or Geo-targeted with CCPA/CPRA opt-out template

These templates automatically configure:

  • Region-based rules
  • Cookie categories
  • Auto-blocking of non-essential cookies
  • Consent banner behavior

No extra setup is needed for most use cases.


Updating an existing domain

To make an existing domain comply with opt-in requirements:

  1. Go to Dashboard → Domain list
  2. Select your domain and click Settings

    Under Regional settings, make sure:

    • The region is set to CookieHub as the framework
    • The Consent type is set to Explicit consent / opt-in
  3. Click Customize for the region and enable the Deny all button in the consent dialog

This ensures consent is freely given and refusal is as easy as acceptance, in line with GDPR and CNIL guidelines.

(Optional) Add new regions if you want different consent types for specific countries (e.g., implied consent in low-risk jurisdictions).


Implementation details

HTML implementation (recommended)

Add the CookieHub embed script to the <head> section of your website above all tracking scripts.

✅ This enables:

  • Automatic cookie blocking – CookieHub prevents scripts from running until consent is given
  • Easy setup – No extra configuration needed for most services

Google Tag Manager (GTM) implementation

If you install CookieHub via GTM:

⚠ Automatic cookie blocking is not active. Instead:

  • Google Consent Mode v2 is used
  • Tags that support Consent Mode wait for consent before firing
  • Tags that do not support Consent Mode must be controlled manually using [Additional consent setup] (link to KB article)

HTML vs GTM comparison

Method Auto Cookie Blocking Google Consent Mode Manual Tag Control
HTML (head tag) ✅ Yes ✅ Optional ❌ Not needed for supported tags
GTM ❌ No ✅ Required ✅ Required for unsupported tags