mirror of https://github.com/statping/statping
fix: linting
parent
c6fa2b2707
commit
ec731ee151
|
@ -2,19 +2,19 @@ import analyticsService from '@razorpay/universe-utils/analytics';
|
||||||
import { getUserId } from './helper';
|
import { getUserId } from './helper';
|
||||||
|
|
||||||
export const initLumberjack = () => {
|
export const initLumberjack = () => {
|
||||||
analyticsService.init({
|
analyticsService.init({
|
||||||
lumberjackAppName: 'external_status_page',
|
lumberjackAppName: 'external_status_page',
|
||||||
lumberjackApiKey: window.LUMBERJACK_API_KEY,
|
lumberjackApiKey: window.LUMBERJACK_API_KEY,
|
||||||
lumberjackApiUrl: window.LUMBERJACK_API_URL,
|
lumberjackApiUrl: window.LUMBERJACK_API_URL,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
export const analyticsTrack = (trackObj) => {
|
export const analyticsTrack = (trackObj) => {
|
||||||
analyticsService.track({
|
analyticsService.track({
|
||||||
...trackObj,
|
...trackObj,
|
||||||
properties: {
|
properties: {
|
||||||
...trackObj.properties,
|
...trackObj.properties,
|
||||||
userId: getUserId(),
|
userId: getUserId(),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue