Adding some logging when Do Not Track disables stuff
This commit is contained in:
parent
99ecc123f4
commit
d63d2484da
@ -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
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user