mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	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';
 | 
					import { emitter } from 'shared/helpers/mitt';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const initializeAnalyticsEvents = () => {
 | 
					export const initializeAnalyticsEvents = () => {
 | 
				
			||||||
 | 
					  AnalyticsHelper.init();
 | 
				
			||||||
  emitter.on(ANALYTICS_IDENTITY, ({ user }) => {
 | 
					  emitter.on(ANALYTICS_IDENTITY, ({ user }) => {
 | 
				
			||||||
    AnalyticsHelper.identify(user);
 | 
					    AnalyticsHelper.identify(user);
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user