This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

doNotTrack

Summary

Returns the user’s do-not-track setting. This is “yes” if the user has requested not to be tracked by web sites, content, or advertising.

Property of dom/Navigatordom/Navigator

Syntax

Note: This property is read-only.

var result = navigator.doNotTrack;

Return Value

Returns an object of type

Note that navigator.doNotTrack is not the value sent for the do-not-track header. When the do-not-track header sends "1", navigator.doNotTrack is "yes". When the header is unset, navigator.doNotTrack is "unspecified". When the header sends “0” (currently unsupported in Firefox), navigator.doNotTrack is "no".

Usage

 Could be used to determine if the client web browser may be blocking some page content.

In MSIE browsers when ActiveX content or other content is blocked an Icon is displayed in the Address bar which the user can click to disable Tracking Protection and/or ActiveX filtering for the current site.

Notes

IE9 uses a vendor prefix, eg. navigator.msDoNotTrack

IE9, Opera 12, Safari 5.1, and Chrome 31 are based on an earlier version of this specification where navigator.doNotTrack is the value sent for the do-not-track header.

IE10 and higher do not use the doNotTrack header which is user configured from the Advanced tab of Internet Options. There is no navigator.doNotTrack or navigator.msdoNotTrack property in those MSIE versions.

Standards information

The current Tracking Preference Expression (Working Draft) is based on an earlier version of this specification where navigator.doNotTrack is the value sent for the do-not-track header.

See also

Related pages

Attributions