Cluster 15 · Privacy Frameworks · Opt-In vs Opt-Out + GPC

GDPR / ePrivacy vs. CCPA / CPRA Consent & GPC Compliance Engineering Matrix

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

3. Pre-Consent Cookie Policy & Categories

Markdown + Matrix
Storage Categories Used on Your Site
Generated Pre-Consent Cookie Policy (pre-consent-cookie-policy.md)
# 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].

Compliance & Pre-Consent Control Specification

Control / Signal Compliant Baseline Engineering & Privacy Rationale
EU / UK Default Opt-In (Default Denied) Block non-essential scripts & cookies until affirmative action; 1-click 'Reject All'
US / CA Default Opt-Out + Mandatory GPC Suppress ad sharing immediately when `Sec-GPC: 1` or `navigator.globalPrivacyControl === true`
Consent Mode Region Region-scoped OR Global Denied Use `'region': ['AT', ..., 'GB', 'CH']` for EU-only default-denied, or omit `region` for strict global opt-in
Audit Surface /.well-known/gpc.json + Pre-Consent Cookies Verify both EU pre-consent cookie zeroing and US GPC opt-out via automated scans

Region-Aware Consent Mode v2 + Universal GPC Snippet

multi-region-consent.html
<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

  1. Choose between Global Strict Opt-In (simplest zero-risk architecture) or Region-Scoped Opt-In (`EEA/UK/CH`) + US Opt-Out/GPC.
  2. 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!
  3. Always honor `Sec-GPC: 1` and `navigator.globalPrivacyControl === true` globally regardless of geo.
  4. 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.
Verify Live: Audit your production site on consent.runglab.dev or grab the $39 ConsentCheck Compliance Pack. Not legal advice.

More GDPR, Consent Mode v2 & GPC Implementation Guides

← Back to GDPR & Consent Mode v2 Hub · ConsentCheck Live Audit → · $39 Compliance Pack → · Cluster 4: Security Headers → · Cluster 11: PCI & SRI →

Frequently Asked Questions

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.