Skip to main content

Global Privacy Control

Global Privacy Control (GPC) is a browser signal that tells sites a visitor does not want their data sold or shared. OptSens reads it from navigator.globalPrivacyControl and acts on it based on the region.

What OptSens does on the wire​

OptSens checks navigator.globalPrivacyControl during init, and reads the older Do Not Track signal the same way. How it responds depends on the regulation that applies to the visitor:

RegulationGPC behavior
CCPA / USLegally binding. Auto-opt-out of sale and sharing, no first-load banner needed
GDPR / LGPDNot used. GDPR consent must be an explicit choice, the banner shows as normal and nothing is granted or rejected by the signal

In a CCPA region with GPC present, OptSens records a reject-all consent state, marks the consent as GPC-detected and GPC-honored, and skips the first-load banner. The widget still mounts and the visitor can reopen preferences. This state flows through to the GPP US National section and __uspapi. The encoded section carries the opt-out plus a GPC subsection that reports the raw browser signal to ad tech.

How to enable it​

GPC handling has no Frameworks toggle. Two settings control it: the global Respect privacy signals (GPC / DNT) switch on the Privacy Settings page, and a per-region Respect GPC / DNT signals option inside each geo rule, on by default. Make sure your CCPA region is configured. GPC is then honored as an opt-out for those visitors. See CCPA / CPRA.

How to verify it​

First confirm your browser is sending the signal:

console.log(navigator.globalPrivacyControl);

This reads true when GPC is enabled (for example, with a privacy extension or a browser that ships GPC). If it is undefined, the browser is not sending the signal and there is nothing for OptSens to honor.

On a CCPA page with GPC on, check that OptSens recorded the opt-out:

console.log(OptSens.consent);

The state has gpc_detected and gpc_honored set to true, with advertising set to false. See window.OptSens.