Adding some logging when Do Not Track disables stuff

This commit is contained in:
Jeff Avallone committed 2018-05-24 18:04:57 -04:00
1 parent 99ecc123f4
commit d63d2484da
2 files changed
+4

No files matched your search

+2
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
}
};
+2
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
}
};