fix double page count on web

This commit is contained in:
Sean Yesmunt 2019-07-09 12:18:06 -04:00
parent 55a3e2e9ce
commit 52ec4555ee

View file

@ -98,7 +98,9 @@ ReactGA.initialize(UA_ID, {
// Manually call the first page view
// React Router doesn't include this on `history.listen`
// @if TARGET='web'
analytics.pageView(window.location.pathname + window.location.search);
// @endif
// @if TARGET='app'
ReactGA.set({ checkProtocolTask: null });