Skip to content
Privacy and compliance

What is Do Not Track (DNT)?

2 min read · Updated · By the Reveata team

Short answerDo Not Track (DNT) is a browser setting that sends the header DNT: 1 with every request to say the person does not want to be tracked. Websites were never required to honour it in most places, the specification was discontinued, and it has been deprecated in favour of Global Privacy Control.

A dark "do not disturb" sign hangs on a wall
Photo by Simon N on Unsplash

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:

http
DNT: 1

Scripts 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:

html
<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.

Frequently asked questions

Do browsers still offer Do Not Track?

Some still have the setting, but it is deprecated and its specification was discontinued. Browsers that care about the signal increasingly support Global Privacy Control instead.

Is Do Not Track the same as blocking cookies?

No. DNT only asks; it blocks nothing. Cookie blocking is enforced by the browser whatever the site wants.

Does respecting DNT reduce my numbers?

Yes, by the share of your visitors who send the signal. That share depends on your audience and their browsers. Visitors who send it are simply not counted, so your totals are slightly lower but not distorted in any other way.

See it with your own numbersReveata ties every visit and sale to the source that brought it. Add your website in a minute.
Get started
Was this page useful?
GlossaryWhat is Global Privacy Control (GPC)?Global Privacy Control (GPC) is a signal a browser or extension sends to every website, through the Sec-GPC header and a JavaScript property, to say the person does not want their personal information sold or shared. Under California's CCPA, covered businesses must treat it as a valid opt-out request.GlossaryWhat is cookie consent?Cookie consent is the permission a website asks a visitor for before it stores or reads non-essential cookies, or similar data, on their device. Under EU and UK rules it must be given freely, clearly and before the cookies are set, and it must be as easy to refuse as to accept.GlossaryWhat is the CCPA?The CCPA (California Consumer Privacy Act) is a California law that gives residents rights over the personal information businesses collect about them, including the right to know, delete and correct it and to opt out of its sale or sharing. It was amended and expanded by the CPRA from 1 January 2023.GlossaryWhat is a cookie banner?A cookie banner is the pop-up or bar a website shows to tell visitors which cookies and similar technologies it uses and to collect their choice, so that non-essential cookies are only set after the visitor agrees.GlossaryWhat is a data controller?A data controller is the organisation that decides why and how personal data is processed. A data processor is a separate organisation that processes the data on the controller's behalf and only on its instructions, such as an analytics or email provider.GlossaryWhat is a data processing agreement (DPA)?A data processing agreement (DPA) is the contract in which a company that processes personal data for you, such as an analytics or email provider, commits to handling it only on your instructions and with proper safeguards. The GDPR requires one whenever a processor handles personal data for a controller.