doNotTrack property
Returns a String indicating whether the user set a preference not to be tracked .
![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: String
the return value.
Standards information
- Web Tracking Protection, Section 6
Remarks
As of Microsoft Edge, the "-ms-" prefixed version of this property is not supported in the EdgeHTML engine.
When the Do Not Track user preference is set on a document, doNotTrack returns true.
document.navigator.doNotTrack == "1"
See also
Show:
