Global Privacy Control (GPC) is a privacy signal sent by the browser via a header (Sec-GPC: 1) and a DOM property (navigator.globalPrivacyControl). When set, the user is opting out of the sale or sharing of personal information.
Detect the signal on every request. If true, treat it as a valid CCPA opt-out: disable tracking, advertising cookies, and any sale or sharing of personal data for that visitor.
// Client-side
if (navigator.globalPrivacyControl) {
// skip analytics, advertising, identification
}
// Server-side
const gpc = req.headers["sec-gpc"] === "1";
SiteSonar is GPC and CCPA aware. When the signal is present, visitor identification, advertising signals, and conversion routing personalization are suppressed for that session. Read the SiteSonar security page →