Test Your Consent Setup
Use this checklist before going live or after making changes to your consent configuration.
Pre-flight checklist
- Embed script is in
<head>withdefer - Embed token matches your property
- Domain is authorised in Property → Settings → Domains
- Policy is published (not draft)
- Banner layout selected and saved
Test 1: Banner appears for new visitors
- Open your site in a private/incognito window
- ✅ Banner should appear before any interaction
- ✅ Banner should render correctly on mobile (resize browser)
Test 2: Script blocking works
- Open DevTools → Network (keep it open before page load)
- Load your site in incognito
- ✅ Scripts marked with
type="text/plain"should NOT appear in the Network tab - Accept consent
- ✅ Blocked scripts should now load (appear in Network tab)
Test 3: Consent stored correctly
- Accept consent in incognito window
- DevTools → Application → Cookies → find
cf_consent - ✅ Cookie should exist with correct domain and 12-month expiry
- Reload the page
- ✅ Banner should NOT reappear
Test 4: Rejection works
- Open fresh incognito window
- Click Reject All
- ✅
cf_consentcookie should show all non-necessary categories asfalse - ✅ Blocked scripts should NOT appear in DevTools → Network
Test 5: Preference Center
- Open Preference Center (click Customize or your footer "Cookie Settings" link)
- ✅ All categories should be shown with correct names and descriptions
- Toggle analytics off, save
- ✅ Analytics scripts should not load on reload
Test 6: Google Consent Mode (if applicable)
In DevTools Console:
window.dataLayer.filter(e => e[0] === 'consent')
✅ Should show: consent.default (denied) then consent.update (with user's choices)
Test 7: Evidence receipt created
- Make a consent decision
- Dashboard → Evidence → Receipts
- ✅ A new receipt should appear within 30 seconds
Common issues found in testing
| Issue | Solution |
|---|---|
| Banner not showing | See Banner Not Showing |
| Scripts not blocked | See Scripts Not Blocked |
| Consent Mode not updating | See Consent Mode Issues |