Move session tracking
This commit is contained in:
@ -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');
|
||||
|
@ -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 });
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user