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:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user