Guides Global Privacy Control (GPC) implementation for CPRA Section 1798.135(e) and state compliance (CA, CO, CT, MT, TX, OR). Detects Sec-GPC HTTP header, navigator.globalPrivacyControl JS API, provides server-side code.
npx claudepluginhub mukul975/privacy-data-protection-skills --plugin privacy-skills-completeThis skill uses the workspace's default tool permissions.
Global Privacy Control (GPC) is a browser-level signal that communicates a user's privacy preference to opt out of the sale or sharing of their personal information. The GPC specification defines both an HTTP header (`Sec-GPC: 1`) and a JavaScript API (`navigator.globalPrivacyControl`) for transmitting this signal.
Conducts multi-round deep research on GitHub repos via API and web searches, generating markdown reports with executive summaries, timelines, metrics, and Mermaid diagrams.
Dynamically discovers and combines enabled skills into cohesive, unexpected delightful experiences like interactive HTML or themed artifacts. Activates on 'surprise me', inspiration, or boredom cues.
Generates images from structured JSON prompts via Python script execution. Supports reference images and aspect ratios for characters, scenes, products, visuals.
Global Privacy Control (GPC) is a browser-level signal that communicates a user's privacy preference to opt out of the sale or sharing of their personal information. The GPC specification defines both an HTTP header (Sec-GPC: 1) and a JavaScript API (navigator.globalPrivacyControl) for transmitting this signal.
Under California Privacy Rights Act (CPRA) Section 1798.135(e), businesses must treat GPC signals as valid opt-out requests. The California Attorney General confirmed this enforcement position in the Sephora settlement (August 2022, $1.2 million fine), which was the first enforcement action involving GPC signals.
The GPC signal is transmitted as an HTTP request header:
Sec-GPC: 1
This header is set by the browser (or browser extension) on every HTTP request when the user has enabled GPC. The header is absent (not set to 0) when GPC is not enabled.
The GPC signal is also available via the JavaScript DOM API:
// Check if GPC is supported and enabled
if (navigator.globalPrivacyControl === true) {
// User has opted out — do not sell/share personal information
// Do not load non-essential tracking scripts
// Set internal opt-out flag for this user
}
Key considerations:
navigator.globalPrivacyControl returns true when GPC is enablednavigator.globalPrivacyControl returns false or undefined when GPC is not enabled or not supportedOn the server side, check for the Sec-GPC header in incoming requests:
If Sec-GPC header is present AND equals "1":
→ Set opt-out flag for this session/user
→ Do not initiate sale or sharing of personal information
→ Do not load third-party tracking pixels
→ Log GPC signal receipt for compliance records
CloudVault SaaS Inc. checks GPC at two points:
Page Load: Before initializing any analytics or advertising SDKs, check navigator.globalPrivacyControl. If true, suppress non-essential tracking.
Consent Banner Interaction: If GPC is detected, pre-select the "Opt Out of Sale/Sharing" option in the cookie consent banner and display a notice: "We detected your Global Privacy Control signal. Your opt-out preference has been applied."
The CloudVault SaaS Inc. backend middleware:
Sec-GPC: 1 header.gpc_opt_out = true.Sec-GPC response header echoing the signal (transparency).GPC is a binary signal (opt out of sale/sharing). CloudVault SaaS Inc. maps it to specific consent purposes:
| GPC Signal | Internal Purpose | Action |
|---|---|---|
| Sec-GPC: 1 | pur_benchmarking_003 (Third-party data sharing) | Withdraw consent / opt out |
| Sec-GPC: 1 | pur_advertising_004 (Targeted advertising) | Withdraw consent / opt out |
| Sec-GPC: 1 | pur_analytics_001 (Service improvement) | No change (internal use, not sale/sharing) |
| Sec-GPC: 1 | pur_marketing_002 (Product emails) | No change (direct marketing, not sale/sharing) |
When a user has manually opted in via the preference center but their browser sends GPC:
To verify GPC implementation:
Sec-GPC: 1 header is sent in network requests