diff --git a/react-frontend/src/utils/analytics.js b/react-frontend/src/utils/analytics.js index 1f0e8a66..2ca62e02 100644 --- a/react-frontend/src/utils/analytics.js +++ b/react-frontend/src/utils/analytics.js @@ -4,7 +4,7 @@ import { titleCase } from './helper'; export const sendToLumberjack = ({ eventName, properties = {} }) => { const body = { mode: 'live', - key: window.LUMBERJACK_API_KEY, + key: 'test_key_1', events: [ { event_type: 'test_source', @@ -18,7 +18,7 @@ export const sendToLumberjack = ({ eventName, properties = {} }) => { ], }; - fetch(window.LUMBERJACK_API_URL, { + fetch('https://lumberjack.stage.razorpay.in/v1/track', { method: 'post', body: JSON.stringify(body), headers: { diff --git a/react-frontend/src/utils/trackers.js b/react-frontend/src/utils/trackers.js index 405eceb8..14e94a1f 100644 --- a/react-frontend/src/utils/trackers.js +++ b/react-frontend/src/utils/trackers.js @@ -3,7 +3,7 @@ import analyticsService from '@razorpay/universe-utils/analytics'; export const initLumberjack = () => { analyticsService.init({ lumberjackAppName: 'test_source', - lumberjackApiKey: window.LUMBERJACK_API_KEY, + lumberjackApiKey: 'test_key_1', lumberjackApiUrl: "https://lumberjack.stage.razorpay.in/v1/track", }); }; \ No newline at end of file