Configure PostHog (`opt_out_capturing_by_default: true` / `persistence: 'memory'`) and Segment Analytics.js (`@segment/consent-manager`) so zero tracking cookies fire before consent.
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 B2B SaaS
- **Primary Domain:** https://app.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 (global-strict).
- **Global Privacy Control (GPC):** Honored automatically via `Sec-GPC: 1` and `navigator.globalPrivacyControl` (published at `https://app.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)
- Support Chat & Session Widgets (Intercom / HubSpot)
## 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].
Initialize PostHog with `opt_out_capturing_by_default: true` and `persistence: 'memory'` so `ph_*` cookies and `localStorage` stay empty.
Only call `posthog.opt_in_capturing()` and upgrade `persistence` when the user accepts Analytics consent.
For Segment, wrap `analytics.load()` inside your CMP callback and pass destination-level integration booleans (blocking ad pixels when `navigator.globalPrivacyControl === true`).
Verify zero `ph_*` or `ajs_*` cookies appear on fresh page load via `consent.runglab.dev`.
PostHog's `persistence: 'memory'` mode prevents touching cookies or `localStorage` altogether — avoiding ePrivacy storage triggers when strictly anonymized.
Default Segment snippets write `ajs_anonymous_id` to cookies & `localStorage` immediately on `analytics.load()` unless wrapped by a consent manager.
When users revoke consent, call `posthog.opt_out_capturing()` AND `posthog.reset()` to clear cached IDs.
Common Pre-Consent Pitfalls
Setting `opt_out_capturing_by_default: true` while forgetting `persistence: 'memory'` (which may still inspect/write storage flags depending on SDK version).
Calling `analytics.page()` immediately on mount before Segment consent rules resolve.
Letting Segment proxy ad-sharing destinations while `Sec-GPC: 1` is active.
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.