Skip to content

Instantly share code, notes, and snippets.

@kremalicious
Last active November 27, 2015 21:00
Show Gist options
  • Save kremalicious/900e4c36ba044c4f1f7b to your computer and use it in GitHub Desktop.
Save kremalicious/900e4c36ba044c4f1f7b to your computer and use it in GitHub Desktop.
Check for user's DNT browser setting
//
// check for user's DNT browser setting
//
(function (dnt) {
var DNT = 'no';
if (dnt !== "yes" && dnt !== "1") {
DNT = 'yes';
}
}(navigator.doNotTrack || navigator.msDoNotTrack || window.doNotTrack || window.msDoNotTrack || null));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment