---
url: https://trail.karanjot.co.in/docs/tracking/dnt.md
description: >-
  Trail skips visitors who send Do Not Track or Global Privacy Control. See how
  to count them anyway with data-dnt="off".
---

# Do Not Track and GPC

If a visitor's browser sends **Do Not Track** (`navigator.doNotTrack == "1"`) or **Global Privacy Control** (`navigator.globalPrivacyControl`), the tracker stops before doing anything: no request, no storage, no listeners. They are simply not in your numbers.

To count those visitors anyway, set `data-dnt="off"`:

```html
<script defer src="/_t/t.js" data-site="mysite" data-dnt="off"></script>
```

With the npm package, pass `dnt: false`. Only do this if you have decided the signals do not apply to your site; the rest of the mode rules (private until consent, and so on) still apply.

The check runs in the browser, so the server never learns that a visitor opted out.

## Next

* [Privacy modes and consent](/tracking/privacy).
