diff --git a/assets/javascripts/lib/page.coffee b/assets/javascripts/lib/page.coffee index 7a5329f6..5ad89b32 100644 --- a/assets/javascripts/lib/page.coffee +++ b/assets/javascripts/lib/page.coffee @@ -200,6 +200,8 @@ page.track = (fn) -> track = -> return unless app.config.env == 'production' + return if navigator.doNotTrack == '1' + return if navigator.globalPrivacyControl consentGiven = Cookies.get('analyticsConsent') consentAsked = Cookies.get('analyticsConsentAsked')