diff --git a/src/vector/index.js b/src/vector/index.js index d1752356a9..7674dd4789 100644 --- a/src/vector/index.js +++ b/src/vector/index.js @@ -280,10 +280,7 @@ async function loadApp() { } else if (validBrowser) { UpdateChecker.start(); - let doNotTrack = navigator.doNotTrack; - if (typeof navigator.doNotTrack === 'string') { - doNotTrack = navigator.doNotTrack === 'yes'; - } + const doNotTrack = navigator.doNotTrack === 'yes' || navigator.doNotTrack === '1' || navigator.doNotTrack === 1; if (!doNotTrack && configJson.piwik && configJson.piwik.url && configJson.piwik.siteId) { (function() { const g = document.createElement('script');