fix double page count on web
This commit is contained in:
parent
55a3e2e9ce
commit
52ec4555ee
1 changed files with 2 additions and 0 deletions
|
@ -98,7 +98,9 @@ ReactGA.initialize(UA_ID, {
|
||||||
|
|
||||||
// Manually call the first page view
|
// Manually call the first page view
|
||||||
// React Router doesn't include this on `history.listen`
|
// React Router doesn't include this on `history.listen`
|
||||||
|
// @if TARGET='web'
|
||||||
analytics.pageView(window.location.pathname + window.location.search);
|
analytics.pageView(window.location.pathname + window.location.search);
|
||||||
|
// @endif
|
||||||
|
|
||||||
// @if TARGET='app'
|
// @if TARGET='app'
|
||||||
ReactGA.set({ checkProtocolTask: null });
|
ReactGA.set({ checkProtocolTask: null });
|
||||||
|
|
Loading…
Add table
Reference in a new issue