fix: Initialize SDK along with emitter registration (#10896)

Initialize the SDK along with the emitter registration to ensure
accurate data reporting for analytics events.
This commit is contained in:
Pranav
2025-02-12 22:14:04 -08:00
committed by GitHub
parent 46c0198b6a
commit 6e48e73e73

View File

@@ -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);
});