allows logView events with internal apis dev

This commit is contained in:
jessop 2019-09-02 14:08:29 -04:00
parent 620ab2e2c1
commit c59e6d7672

View file

@ -8,6 +8,7 @@ import ElectronCookies from '@exponent/electron-cookies';
// @endif // @endif
const isProduction = process.env.NODE_ENV === 'production'; const isProduction = process.env.NODE_ENV === 'production';
const devInternalApis = process.env.LBRY_API_URL;
type Analytics = { type Analytics = {
pageView: string => void, pageView: string => void,
@ -48,7 +49,7 @@ const analytics: Analytics = {
// @endif // @endif
}, },
apiLogView: (uri, outpoint, claimId, timeToStart) => { apiLogView: (uri, outpoint, claimId, timeToStart) => {
if (analyticsEnabled && isProduction) { if (analyticsEnabled && (isProduction || devInternalApis)) {
const params: { const params: {
uri: string, uri: string,
outpoint: string, outpoint: string,