Banner Installation
Integrate the GDPR HUB consent engine into your website with a single line of code. Manage preferences, block trackers, and maintain compliance effortlessly.
Embed the Consent Engine
Copy and paste this snippet into the
<head> of your website. Ensure it appears before any other third-party
scripts (like Analytics or Ads).
<!-- GDPR Hub Consent Engine -->
<script
src="https://app.gdprhub.iocookie-banner.js"
id="gdpr-hub-consent"
data-company-id="YOUR_COMPANY_ID"
></script>
Configure Tracker Blocking
To ensure non-essential cookies are only dropped after
consent, update your existing scripts to use the text/plain type and specify a
compliance category.
<script
type="text/plain"
data-consent-category="analytics"
src="https://www.google-analytics.com/analytics.js"
></script>
<script
type="text/plain"
data-consent-category="marketing"
>
fbq('track', 'PageView');
</script>
JavaScript API
Access the consent state programmatically in your own
applications using the global GDPRCookieConsent object.
GDPRCookieConsent.hasConsent('analytics')
GDPRCookieConsent.onChange(data => { ... })
Ready to verify?
After installing the snippet, use the Scanner to verify that cookies are being correctly blocked until consent is given.
Run Verification ScanCompliance Features
-
Auto-StylingBanner matches your site branding automatically.
-
Regional ComplianceDetects location and applies GDPR or CCPA rules.
-
IAB TCF 2.2 SupportFull support for the Transparency & Consent Framework.