-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
only first time i'm in home no error and session is set then whenever i back to home again
i got Uncaught TypeError: Cannot read property 'push' of undefined
` ngOnInit(): void {
this.eventManager.navigate.subscribe((path: any) => {
if (path.url === '/') {
this.startSession();
}
});
}`
` private startSession(): void {
this.appInsightsService.queue.push(() => {
this.appInsightsService.context.addTelemetryInitializer((envelope: Microsoft.ApplicationInsights.IEnvelope) => {
envelope.tags['ai.session.id'] = uuid();
envelope.tags['ai.device.id'] = this.env.store.unitName;
});
});
}`
Metadata
Metadata
Assignees
Labels
No labels