Merge pull request #2836 from lbryio/internalApiInDev
allows logView events with internal apis dev
This commit is contained in:
commit
ac700c851a
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue