Respect Do Not Track and Global Privacy Control

pull/1686/head
Simon Legner 3 years ago
parent 35458b7628
commit 3e2b0f9ac6

@ -200,6 +200,8 @@ page.track = (fn) ->
track = -> track = ->
return unless app.config.env == 'production' return unless app.config.env == 'production'
return if navigator.doNotTrack == '1'
return if navigator.globalPrivacyControl
consentGiven = Cookies.get('analyticsConsent') consentGiven = Cookies.get('analyticsConsent')
consentAsked = Cookies.get('analyticsConsentAsked') consentAsked = Cookies.get('analyticsConsentAsked')

Loading…
Cancel
Save