From d63d2484da54e65000c096a832005956752f405d Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Thu, 24 May 2018 18:04:57 -0400 Subject: [PATCH] Adding some logging when Do Not Track disables stuff --- src/setup/analytics.js | 2 ++ src/setup/raven.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/setup/analytics.js b/src/setup/analytics.js index 4a3940c..7dbb7ea 100644 --- a/src/setup/analytics.js +++ b/src/setup/analytics.js @@ -6,6 +6,8 @@ const setupAnalytics = () => { debug: (process.env.NODE_ENV !== 'production') }); ReactGA.pageview(document.location.pathname); + } else { + console.log('Google Analytics disabled by Do Not Track'); // eslint-disable-line no-console } }; diff --git a/src/setup/raven.js b/src/setup/raven.js index 19d9132..01b2b30 100644 --- a/src/setup/raven.js +++ b/src/setup/raven.js @@ -8,6 +8,8 @@ const setupRaven = () => { debug: (process.env.NODE_ENV !== 'production'), release: process.env.BUILD_ID }); + } else { + console.log('Sentry error reporting disabled by Do Not Track'); // eslint-disable-line no-console } };