Do Not Track was an early attempt to give people a single switch for privacy across the web. The idea was simple: the browser tells every site the person's preference, so they do not have to answer a banner on each one. The hard part was agreeing what "tracking" meant and who had to listen, and that agreement never came.
How it works
When the setting is on, the browser adds a request header:
DNT: 1Scripts can read the same preference from navigator.doNotTrack, which returns "1", "0" or null. MDN's DNT reference (opens in a new tab) marks the header as deprecated and non-standard, notes that the specification has been discontinued, and points to Global Privacy Control as its replacement.
Why it did not work out
- No legal force in most places. Honouring it was voluntary, and many large sites chose not to.
- No shared definition. Advertisers, browser makers and privacy groups disagreed on what counted as tracking.
- Defaults. When a browser turned it on by default, some sites argued the signal no longer reflected a person's own choice.
- Fingerprinting. Because few people sent it, the header itself became one more detail that could help tell browsers apart.
Global Privacy Control, the successor
GPC works the same way technically, with a Sec-GPC: 1 header and a navigator.globalPrivacyControl property. The difference is legal backing: California's Attorney General says businesses covered by the CCPA must treat a user-enabled global privacy control, such as GPC, as a valid opt-out of sale or sharing.
Should you still respect DNT?
Nothing stops you, and some site owners do it as a matter of principle. Respecting it costs you a small number of visits in your analytics and tells privacy-minded visitors their choice is heard. Treat it as a courtesy, not as a substitute for whatever consent your visitors' laws require. This is general information, not legal advice.
How Reveata handles it
Reveata lets you choose. Add one attribute to the snippet:
<script defer data-website-id="ws_your_tracking_id" data-respect-dnt="true"
src="https://reveata.com/js/script.js"></script>With data-respect-dnt="true", Reveata does not track browsers that send Do Not Track or Global Privacy Control; the exclusions docs list it among the things that are never counted. It is off by default, so the decision stays with you. Tag managers and builders that cannot set attributes can pass the same option in the script address, as described in Install the script.
Separately, any visitor can stop being counted on a site with reveata('optout'), which stores a flag in that browser's local storage.