Auto Region — Start Here (5 Minutes)
Goal: launch a banner that automatically applies the right law (GDPR/TCF in the EEA/UK, IAB GPP in the US, GDPR-safe fallback everywhere else), blocks non-essential tags until a visitor chooses, and stores verifiable consent receipts.
1. Add the snippet
Paste this into your site’s <head> before analytics/ads tags:
<script src="https://YOUR-CMP-CDN/dw-cmp.min.js" data-site-key="YOUR_SITE_KEY" defer></script>
Using React? Install
@digiwedge/cmp-consent-reactand wrap your app with<ConsentProvider />. See the React quickstart for details.
2. Verify
- Open your site in a private/incognito window → the banner should appear.
- In the DigiWedge Portal go to Analytics → Diagnostics and open the Region decision card. It should show your visitor’s region (or “GDPR fallback”).
- Click Accept on your site → the Consent Mode v2 checklist flips to ✅.
3. Optional — Google Tag Manager
- Import our GA4 Consent Mode tag template.
- Ensure GA4/Ads tags wait for consent (the template handles this automatically).
- Publish your GTM container.
You’re done—no regional toggles to maintain.