Skip to main content

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-react and wrap your app with <ConsentProvider />. See the React quickstart for details.

2. Verify

  1. Open your site in a private/incognito window → the banner should appear.
  2. In the DigiWedge Portal go to Analytics → Diagnostics and open the Region decision card. It should show your visitor’s region (or “GDPR fallback”).
  3. Click Accept on your site → the Consent Mode v2 checklist flips to ✅.

3. Optional — Google Tag Manager

  1. Import our GA4 Consent Mode tag template.
  2. Ensure GA4/Ads tags wait for consent (the template handles this automatically).
  3. Publish your GTM container.

You’re done—no regional toggles to maintain.