Automatic cookie blocker

CookieHub includes an optional feature that automatically blocks cookies set by commonly used services. This helps ensure tracking scripts do not run before the user has given consent.

How it works

When a page loads, CookieHub detects JavaScript tags from supported services and delays their execution. After the page is ready, CookieHub checks if the user has consented. If consent is given or was already stored, the delayed scripts load normally. If not, they remain blocked until the user makes a choice in the consent dialog.

Important note for GTM users

If you implement CookieHub through Google Tag Manager, do not enable automatic cookie blocking. Instead, use GTM’s built-in consent controls or CookieHub’s additional consent configuration for unsupported tags.

When to use this feature

If your site only uses services supported by the automatic cookie blocker, no additional configuration is required. If you also use services not currently supported, use GTM or the delayed inline JavaScript method for those scripts.

Supported services

CookieHub frequently updates the automatic blocker to include more services. Currently supported:

  • AddThis
  • AddToAny
  • Crazyegg
  • Facebook Pixel
  • Google Ads (remarketing, conversion tracking, display ads)
  • Google Analytics (gtag.js, analytics.js, GA4)
  • Google Maps (API)
  • Hotjar
  • Inspectlet
  • Leadfeeder
  • LinkedIn Insights
  • Microsoft Ads / Bing Ads
  • Microsoft Clarity
  • Mixpanel
  • Olark
  • Pardot
  • PostHog Analytics
  • ShareThis
  • Snowplow Analytics
  • Tawk.to
  • TikTok Analytics