Move session tracking

This commit is contained in:
Tom Moor
2018-11-19 21:28:15 -08:00
parent 8aaab2fc76
commit 2c55f94d39
2 changed files with 1 additions and 5 deletions

View File

@ -17,6 +17,7 @@ export default class Analytics extends React.Component<*> {
// $FlowIssue
ga.l = +new Date();
ga('create', process.env.GOOGLE_ANALYTICS_ID, 'auto');
ga('set', { dimension1: 'true' });
ga('send', 'pageview');
const script = document.createElement('script');

View File

@ -62,11 +62,6 @@ const Auth = observer(({ auth, children }: Props) => {
};
}
// Session custom dimension separates logged in from logged out users
if (window.ga) {
window.ga('set', { dimension1: true });
}
authenticatedStores.collections.fetchPage({ limit: 100 });
}