From 7e51f9ca9ace2fd3775053247e6e475f3b508e99 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 9 Apr 2019 17:32:53 -0400 Subject: [PATCH] fix pageview args --- src/ui/analytics.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ui/analytics.js b/src/ui/analytics.js index 104119a34..52c98393b 100644 --- a/src/ui/analytics.js +++ b/src/ui/analytics.js @@ -15,7 +15,7 @@ let analyticsEnabled: boolean = true; const analytics: Analytics = { pageView: path => { if (analyticsEnabled) { - ReactGA.pageview(path, IS_WEB ? 'web' : 'desktop'); + ReactGA.pageview(path, IS_WEB ? ['web'] : ['desktop']); } }, setUser: user => { @@ -72,10 +72,11 @@ const analytics: Analytics = { // Initialize google analytics // Set `debug: true` for debug info +// Currently doesn't actually differentiate between web/desktop ReactGA.initialize('UA-60403362-12', { gaOptions: { name: IS_WEB ? 'web' : 'desktop' }, testMode: process.env.NODE_ENV !== 'production', - debug: true, + // debug: true, }); // Manually call the first page view