diff --git a/assets/javascripts/lib/page.coffee b/assets/javascripts/lib/page.coffee index 91d73432..7a5329f6 100644 --- a/assets/javascripts/lib/page.coffee +++ b/assets/javascripts/lib/page.coffee @@ -199,6 +199,8 @@ page.track = (fn) -> return track = -> + return unless app.config.env == 'production' + consentGiven = Cookies.get('analyticsConsent') consentAsked = Cookies.get('analyticsConsentAsked') diff --git a/assets/javascripts/templates/pages/settings_tmpl.coffee b/assets/javascripts/templates/pages/settings_tmpl.coffee index 94afe3df..d5cb0985 100644 --- a/assets/javascripts/templates/pages/settings_tmpl.coffee +++ b/assets/javascripts/templates/pages/settings_tmpl.coffee @@ -19,7 +19,7 @@ app.templates.settingsPage = (settings) -> """ Automatically download documentation for offline use Only enable this when bandwidth isn't a concern to you. -