Adding some logging when Do Not Track disables stuff

This commit is contained in:
Jeff Avallone 2018-05-24 18:04:57 -04:00
parent 99ecc123f4
commit d63d2484da
2 changed files with 4 additions and 0 deletions

View File

@ -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
}
};

View File

@ -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
}
};