Fix GA on the website. The version as committed now does not function.

Note that different browsers implement different methods of DNT and
that some chosen values for the JS API has changed sine this was originally implemented.

Approved by:	doceng
This commit is contained in:
Eitan Adler 2013-06-12 20:52:31 +00:00
parent 524b992fdc
commit 82e6e39154
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=41914

View file

@ -18,7 +18,7 @@ var h = document.location.host;
*/
var fbsdregex = /((docs|security|svnweb|wiki|www)\.freebsd\.org|google\.com)/i;
if (window.navigator.doNotTrack == true) {
if (navigator.doNotTrack == "yes" || navigator.doNotTrack == "1") {
allow_track = false;
}