I would like to respect DNT settings in all browsers using only javascript (I do not have access to the server server on the server). I got the following from https://stackoverflow.com/a/3129609/
var isDNT = navigator.doNotTrack == "yes" || navigator.doNotTrack == "1" || navigator.msDoNotTrack == "1";
This works in all browsers, but IE11 (in particular, 11.0.9600.16428 goes through [ http://spoon.net/] ), which does not seem to comply with any of the above specification properties (I tried to set the DNT preference using "Properties Browser ">" Advanced ">" Security ":" Always send the header do not track ", and also using" Security ">" Enable tracking protection ").
Can someone confirm this correctly (i.e. an error in IE11) or suggest a JS method to detect these parameters?
Tia Ben
Mr benn
source share