Skip to main content

Start Here — 5‑minute setup

Goal: add the CMP snippet, see the banner, verify region decision/Consent Mode, and go live.

1) Add the snippet

Paste into <head> before analytics/ads:

<script src="https://YOUR-CMP-CDN/dw-cmp.min.js" data-site-key="YOUR_SITE_KEY" defer></script>

Running on Windows/IIS? Follow the IIS & ASP.NET Core recipe for proxy, headers, and middleware setup.

React? Use @digiwedge/cmp-consent-react and wrap your app in <ConsentProvider />.

2) Verify

  • Open the site in a private window → the banner should appear (Accept / Reject / Preferences).
  • Portal → Analytics → Diagnostics → Region decision and Consent Mode v2 → should be ✅ after Accept.

Consent banner showing Accept / Reject / Preferences

3) GTM (optional)

  • Import the GA4 Consent Mode template, publish. GA4 waits for consent automatically.

You’re done—no region toggles to maintain.