From 6e48e73e734e85f9ad60d5a7243bf5106d152f78 Mon Sep 17 00:00:00 2001 From: Pranav Date: Wed, 12 Feb 2025 22:14:04 -0800 Subject: [PATCH] fix: Initialize SDK along with emitter registration (#10896) Initialize the SDK along with the emitter registration to ensure accurate data reporting for analytics events. --- app/javascript/dashboard/helper/scriptHelpers.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/dashboard/helper/scriptHelpers.js b/app/javascript/dashboard/helper/scriptHelpers.js index 55ad6eb13..cb9bffbea 100644 --- a/app/javascript/dashboard/helper/scriptHelpers.js +++ b/app/javascript/dashboard/helper/scriptHelpers.js @@ -8,6 +8,7 @@ import DashboardAudioNotificationHelper from './AudioAlerts/DashboardAudioNotifi import { emitter } from 'shared/helpers/mitt'; export const initializeAnalyticsEvents = () => { + AnalyticsHelper.init(); emitter.on(ANALYTICS_IDENTITY, ({ user }) => { AnalyticsHelper.identify(user); });