Compare EU GDPR/ePrivacy opt-in mandates against California CCPA/CPRA opt-out + GPC rules across Consent Mode v2 defaults, banner UX, retention caps, and multi-region detection.
100% Browser-Side · Zero User-Data Upload · Strict CSP
1. Site Profile, Consent Mode v2 & Tag Gates
GCM v2 + W3C GPC
Consent Signals & Marketing / Analytics Stacks
Informational Notice: Deterministic Consent Mode v2, cookie, and GPC configuration helper — not legal advice. Verify final privacy compliance with qualified GDPR/CCPA counsel.
Consent Mode v2 & GPC Configuration Score
100 / 100 (A+)
PASS
GCM-001: Google Consent Mode v2 default-denied active across all 4 signalsPASS
ad_storage, analytics_storage, ad_user_data, and ad_personalization default to 'denied' before tag firing.
GCM-002: wait_for_update tuned (500ms)PASS
Allows asynchronous CMP state restoration before tag dispatch.
GCM-003: ads_data_redaction enabledPASS
Redacts ad click parameters and prevents third-party ad cookies while ad_storage='denied'.
GCM-004: GPC Signal & /.well-known/gpc.json support enabledPASS
Verify Live Pre-Consent Cookies, Consent Mode v2 & GPC Readiness
Run a live pre-consent cookie, tracker, gtag('consent', 'default') & /.well-known/gpc.json audit on ConsentCheck (consent.runglab.dev), or grab the turnkey $39 ConsentCheck Compliance Pack on Creem. Need a PayPal invoice? Email [email protected].
Verify Live Pre-Consent Cookies, Consent Mode v2 & GPC Readiness
Run a live pre-consent cookie, tracker, gtag('consent', 'default') & /.well-known/gpc.json audit on ConsentCheck (consent.runglab.dev), or grab the turnkey $39 ConsentCheck Compliance Pack on Creem. Need a PayPal invoice? Email [email protected].
# Cookie & Consent Notice — Acme Cloud Inc.
- **Primary Domain:** https://acme.example.com
- **Privacy Contact / DPO:** [email protected]
- **Google Consent Mode v2 Default State:** `denied` across `ad_storage`, `ad_user_data`, `ad_personalization`, and `analytics_storage` prior to consent (eea-uk-strict).
- **Global Privacy Control (GPC):** Honored automatically via `Sec-GPC: 1` and `navigator.globalPrivacyControl` (published at `https://acme.example.com/.well-known/gpc.json`).
- **Ads Data Redaction:** Enabled (`ads_data_redaction: true`).
## Active Storage Categories
- Strictly Necessary (Auth / CSRF / Security)
- Analytics & Product Telemetry (GA4 / PostHog)
- Advertising & Attribution (Google Ads / Meta Pixel)
## Pre-Consent Engineering Guarantees
1. Zero non-essential cookies or localStorage advertising IDs are written before explicit opt-in consent in EEA/UK/CH.
2. Reject-All requires the exact same click depth (1 click) as Accept-All.
3. Users can withdraw consent or trigger GPC opt-out at any time via footer preferences or browser `Sec-GPC: 1`.
> *Informational engineering template only — not legal advice. Verify final privacy disclosures with qualified GDPR/CCPA counsel.*
GDPR / ePrivacy vs. CCPA / CPRA GPC Matrix
Control
EU GDPR & ePrivacy
US CCPA / CPRA & GPC
Default Pre-Consent Model
Strict Opt-In (ePrivacy Art. 5(3) + GDPR Art. 6/7): block non-essential cookies & tags until affirmative consent.
Opt-Out Model (CPRA §1798.135): allow default load except sensitive data / minors; must stop sale/sharing on opt-out.
Google Consent Mode v2 Signals
All 4 signals (ad_storage, analytics_storage, ad_user_data, ad_personalization) MUST default to 'denied'.
Set ad_storage, ad_user_data & ad_personalization to 'denied' immediately when Sec-GPC: 1 or opt-out cookie present.
Global Privacy Control (GPC)
Recognized as supplementary signal; does not replace explicit affirmative consent banner in EU/UK.
Legally binding opt-out of sale/sharing signal (navigator.globalPrivacyControl / Sec-GPC: 1 + /.well-known/gpc.json).
Dark Patterns & Symmetry
CNIL / EDPB require 'Reject All' button with equal visual prominence & 1-click parity to 'Accept All'.
CPRA prohibits deceptive/asymmetrical opt-out UX or forcing multi-step confirmation hoops.
Cookie Retention Cap
CNIL / EU DPAs recommend <= 13 months max retention for consent/analytics cookies and 6-month preference re-prompt.
Honor opt-out preference for >= 12 months before asking to re-authorize.
ConsentCheck · Live Scan$39 Compliance Pack
Verify Live Pre-Consent Cookies, Consent Mode v2 & GPC Readiness
Run a live pre-consent cookie, tracker, gtag('consent', 'default') & /.well-known/gpc.json audit on ConsentCheck (consent.runglab.dev), or grab the turnkey $39 ConsentCheck Compliance Pack on Creem. Need a PayPal invoice? Email [email protected].
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
// 1. Strict Opt-In Default for EEA, UK & Switzerland
gtag('consent', 'default', {
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied',
'analytics_storage': 'denied',
'wait_for_update': 500,
'region': ['AT','BE','BG','HR','CY','CZ','DK','EE','FI','FR','DE','GR','HU','IS','IE','IT','LV','LI','LT','LU','MT','NL','NO','PL','PT','RO','SK','SI','ES','SE','GB','CH']
});
// 2. Global Privacy Control (CCPA / CPRA / US State Opt-Out) Override Everywhere
if (navigator.globalPrivacyControl === true) {
gtag('consent', 'default', {
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied'
});
}
gtag('set', 'ads_data_redaction', true);
</script>
Cloudflare Edge Geo-Region Hint Header
cf-region-consent.ts
// Expose Cloudflare country code safely to edge/CMP without setting any tracking cookies:
export function getConsentJurisdiction(request: Request): "eu-opt-in" | "us-gpc-opt-out" {
const cfCountry = String((request as unknown as { cf?: { country?: string } }).cf?.country || "").toUpperCase();
const EEA_UK_CH = new Set(["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IS","IE","IT","LV","LI","LT","LU","MT","NL","NO","PL","PT","RO","SK","SI","ES","SE","GB","CH"]);
return EEA_UK_CH.has(cfCountry) ? "eu-opt-in" : "us-gpc-opt-out";
}
Implementation Steps & Key Insights
Choose between Global Strict Opt-In (simplest zero-risk architecture) or Region-Scoped Opt-In (`EEA/UK/CH`) + US Opt-Out/GPC.
For region-scoped banners, use edge geo headers (e.g. `CF-IPCountry` / `Vercel-IP-Country`) rather than third-party IP lookup APIs that leak visitor IPs pre-consent!
Always honor `Sec-GPC: 1` and `navigator.globalPrivacyControl === true` globally regardless of geo.
Document both frameworks clearly in your Privacy Policy and test live behavior at `consent.runglab.dev`.
Calling a third-party GeoIP SaaS (`ipapi.co`, `ipinfo.io`) from browser JS to decide whether to show a GDPR banner leaks the visitor's IP address to a third party BEFORE consent — use edge HTTP headers or server-injected hints instead!
Strict global default-denied eliminates geo-detection bugs, VPN edge cases, and multi-state US patchwork complexity.
Always verify UK (`GB`) and Switzerland (`CH`) remain included alongside the 27 EU + 3 EEA states.
Common Pre-Consent Pitfalls
Calling external GeoIP JSON APIs from client JS before consent.
Omitting `GB` (UK GDPR) or `CH` (Swiss FADP) from Consent Mode `'region'` arrays.
Ignoring `navigator.globalPrivacyControl` outside California despite Colorado, Connecticut, Texas, and Oregon privacy laws adopting universal opt-out.
Generate a strictly ordered Google Consent Mode v2 default-denied block covering ad_storage, analytics_storage, ad_user_data, and ad_personalization with ads_data_redaction and 500ms wait_for_update.
Publish a compliant /.well-known/gpc.json support resource and honor Sec-GPC: 1 HTTP headers plus navigator.globalPrivacyControl for CCPA/CPRA opt-out of sale/sharing.
Inspect Google Analytics 4 Consent Mode v2 runtime signals (`gcs`, `gcd`), cookieless ping behavior, and `ads_data_redaction` to confirm zero `_ga` cookies drop before opt-in.
Stop Meta Pixel from setting `_fbp` cookies or firing `tr/` network beacons before user consent using `fbq('consent', 'revoke')` or strict GTM/script deferral.
Configure GTM Consent Overview, Consent Initialization triggers, and custom HTML/pixel tag consent checks so zero marketing tags fire before Consent Mode v2 grants permission.
Can I use a third-party client-side GeoIP API to hide my GDPR cookie banner in the US?
Avoid client-side third-party GeoIP requests before consent, as they transmit visitor IP addresses (personal data under GDPR) to external vendors without a legal basis. Resolve country at your CDN/edge (`CF-IPCountry`) or enforce global default-denied.
Should `GB` and `CH` be included in EEA Consent Mode regions?
Yes — UK GDPR (`GB`) and the Swiss FADP (`CH`) enforce comparable consent rules and should be covered in your default-denied region list.
Where can I test my site's live GDPR, Consent Mode v2 & GPC signals?
Run a free live audit on https://consent.runglab.dev/?ref=tool-consent-cluster or order the $39 ConsentCheck Compliance Pack.