Skip to main content

Diagnostics

The Diagnostics section helps you troubleshoot issues with consent capture, region detection, and integration.

Running diagnostics

  1. Navigate to Diagnostics
  2. Enter a URL or select from recent pages
  3. Click Run Diagnostics

The diagnostic tool checks:

  • CMP snippet installation
  • Configuration loading
  • Region detection
  • Consent Mode signals
  • Cookie behavior

Diagnostic checks

Snippet installation

CheckDescription
Snippet presentCMP script tag found in page
Load orderScript loads before analytics
Site key matchSite key matches configuration
CDN reachableCDN endpoint responds

Configuration

CheckDescription
Config fetchedConfiguration loaded from registry
Schema validConfiguration passes validation
Version currentUsing latest config version
ETag cachingProper cache headers

Region detection

CheckDescription
Region detectedVisitor region identified
Rules appliedCorrect region rules active
Fallback usedDefault rules applied if needed
CheckDescription
Default setgtag('consent', 'default', ...) called
Update sentConsent state updated after decision
Signals correctAll four signals properly set
GA4 receivingGoogle Analytics receiving signals

Interpreting results

Green checkmarks

Everything working correctly.

Yellow warnings

Non-critical issues that may affect behavior:

  • Slow configuration fetch
  • Deprecated configuration options
  • Missing optional settings

Red errors

Critical issues requiring attention:

  • Snippet not installed
  • Configuration not loading
  • Region detection failing
  • Consent Mode not working

Common issues

"Snippet not found"

The CMP script tag is missing. Add to your page:

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

"Configuration failed to load"

Possible causes:

  • Site key doesn't exist
  • CDN is blocked by ad blocker
  • CORS misconfiguration

Ensure:

  • Google tag is installed
  • CMP loads before gtag
  • No JavaScript errors blocking execution

Real-time debugging

Enable debug mode on your site:

localStorage.setItem('dw-cmp-debug', 'true');

This logs detailed information to the browser console.

Next steps