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-GPCheader on the server too. - Showing a banner to GPC visitors asking them to opt out again. The signal already is the opt-out.