diff --git a/interfaces/IBF-dashboard/src/app/analytics/analytics.enum.ts b/interfaces/IBF-dashboard/src/app/analytics/analytics.enum.ts index 97806e063..9099c2af9 100644 --- a/interfaces/IBF-dashboard/src/app/analytics/analytics.enum.ts +++ b/interfaces/IBF-dashboard/src/app/analytics/analytics.enum.ts @@ -20,4 +20,5 @@ export enum AnalyticsEvent { glofasStation = 'glofas-station', mapPlaceSelect = 'map-place-select', leadTime = 'lead-time', + closeEvent = 'close-event', } diff --git a/interfaces/IBF-dashboard/src/app/components/chat/chat.component.ts b/interfaces/IBF-dashboard/src/app/components/chat/chat.component.ts index 379e12954..70231e896 100644 --- a/interfaces/IBF-dashboard/src/app/components/chat/chat.component.ts +++ b/interfaces/IBF-dashboard/src/app/components/chat/chat.component.ts @@ -237,7 +237,7 @@ export class ChatComponent implements OnDestroy { this.countryService .getCountrySubscription() .subscribe((country: Country) => { - this.analyticsService.logEvent(AnalyticsEvent.watchVideoGuide, { + this.analyticsService.logEvent(AnalyticsEvent.closeEvent, { page: AnalyticsPage.dashboard, country: country.countryCodeISO3, isActiveEvent: this.eventService.state.activeEvent,