From c59e6d767224cbc56b2142bceb75910b713a3422 Mon Sep 17 00:00:00 2001 From: jessop Date: Mon, 2 Sep 2019 14:08:29 -0400 Subject: [PATCH] allows logView events with internal apis dev --- src/ui/analytics.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/analytics.js b/src/ui/analytics.js index 1806e40b1..64e60a86c 100644 --- a/src/ui/analytics.js +++ b/src/ui/analytics.js @@ -8,6 +8,7 @@ import ElectronCookies from '@exponent/electron-cookies'; // @endif const isProduction = process.env.NODE_ENV === 'production'; +const devInternalApis = process.env.LBRY_API_URL; type Analytics = { pageView: string => void, @@ -48,7 +49,7 @@ const analytics: Analytics = { // @endif }, apiLogView: (uri, outpoint, claimId, timeToStart) => { - if (analyticsEnabled && isProduction) { + if (analyticsEnabled && (isProduction || devInternalApis)) { const params: { uri: string, outpoint: string,