Navigator.doNotTrack
The navigator.doNotTrack
property returns the user's Do Not Track setting, which indicates whether the user is requesting web sites and advertisers to not track them.
The value of the property reflects that of the DNT HTTP header, i.e. values of "1"
, "0"
, or undefined
.
Test Case
navigator.doNotTrack = undefined