Recommended configuration
To comply with EU and global opt-in laws, your domain must:
- Show a consent dialog before setting non-essential cookies
- Block all non-essential tracking scripts by default
- Provide clear and granular consent options
- Allow users to withdraw consent at any time
How you achieve this depends on whether you’re creating a new domain or updating an existing one.
New domains
When creating a new domain in the CookieHub dashboard:
- Select the Default (Explicit consent) template, or the Geo-targeted with CCPA/CPRA opt-out template.
- These templates configure:
- Region-based rules
- Cookie categories
- Auto-blocking of non-essential cookies
- Consent banner behavior
No further setup is required for typical use cases.
Existing domains
To update an existing domain to comply with opt-in requirements:
- Go to the Dashboard → Domain list
- Select your domain, then click Settings
- Under Regional settings, ensure:
- The region(s) you want to configure are set to use CookieHub as the framework
- The Consent type is set to Explicit consent / opt-in
- Click Customize for the region and make sure the “Deny all” button is enabled in the consent dialog.
This is required to ensure consent is freely given and as easy to refuse as it is to accept, in line with GDPR and CNIL guidelines.
- (Optional) Add new regions if you want to apply different consent types for specific countries (e.g., implied consent in low-risk jurisdictions)
Implementation details
HTML implementation (recommended)
If you install CookieHub directly in your website’s HTML, place the embed script in the <head>
section above all tracking scripts.
✅ This enables:
- Automatic cookie blocking: CookieHub will automatically prevent scripts from executing until the user gives consent.
- Easy setup: No extra configuration needed for most services.
Google Tag Manager (GTM) implementation
If you load CookieHub through GTM:
⚠ The automatic cookie blocker is not active. In this case:
- Google Consent Mode v2 is used instead
- Tags that support Consent Mode will wait for consent before firing
- Tags that do not support Consent Mode must be manually configured using CookieHub’s additional consent method
Refer to Installation → Additional Consent for setup instructions.
Summary: HTML vs GTM
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 |