Skip to content

Privacy

Global Privacy Control (GPC)

Global Privacy Control (GPC) is a signal a browser sends to every website to say the person does not want their personal data sold or shared. Unlike the older Do Not Track header, it has legal force in places such as California, where businesses covered by the CCPA must treat it as a valid opt-out request.

Also called GPC, Sec-GPC, opt-out preference signal, universal opt-out mechanism Updated

How is it calculated?

When GPC is on, the browser adds the HTTP header Sec-GPC: 1 to its requests and exposes navigator.globalPrivacyControl as true to scripts, per the W3C specification. A site checks either one and, if it is set, treats the visitor as having opted out of sale and sharing: no ad pixels that share data, no selling of the record.

According to the GPC project, Brave and DuckDuckGo turn it on by default and Firefox offers it as a setting; it became a work item of the W3C Privacy Working Group in November 2024. The California Attorney General says covered businesses must honour it as an opt-out. GPC asks for something narrower than Do Not Track: it is about selling and sharing, not about all measurement. This is general information, not legal advice.

Example

A site gets 50,000 visits a month and 3,000 of them send Sec-GPC: 1. For those 3,000 the site loads no advertising pixels that share data with ad networks, and it records the opt-out against any account they log in to. Its own first-party analytics, which neither sells nor shares data, can keep counting all 50,000.

Common mistakes

  • Treating GPC as Do Not Track under a new name. No law required sites to honour Do Not Track; GPC is a legally recognised opt-out in California.
  • Checking only the JavaScript property. Server-side tags never see it, so check the Sec-GPC header on the server too.
  • Showing a banner to GPC visitors asking them to opt out again. The signal already is the opt-out.

How CrispStats shows it

CrispStats does not read the GPC signal, and it does not need it to stop selling or sharing data: it sells nothing, shows no ads and does not use visitor data for advertising. The script can skip browsers that send Do Not Track when you add data-dnt. If you want GPC visitors excluded from counting as well, check navigator.globalPrivacyControl before loading the script.

Your traffic, crisp and clear

One script, no cookies, and every feature from the first day. Set up takes about as long as pasting a snippet.