From ae80ed02e413022dd1c658e280c7778e72fc7160 Mon Sep 17 00:00:00 2001 From: Dominik Prokop Date: Mon, 17 Jun 2024 09:14:27 +0200 Subject: [PATCH] DashboardScene: Emit meta analytic view event (#89094) * DashboardScene: Emit view event * check fix --- .../pages/DashboardScenePageStateManager.ts | 10 ++++++++++ .../app/features/dashboard/state/analyticsProcessor.ts | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/public/app/features/dashboard-scene/pages/DashboardScenePageStateManager.ts b/public/app/features/dashboard-scene/pages/DashboardScenePageStateManager.ts index f0235de5a61..30e7064eb2a 100644 --- a/public/app/features/dashboard-scene/pages/DashboardScenePageStateManager.ts +++ b/public/app/features/dashboard-scene/pages/DashboardScenePageStateManager.ts @@ -5,6 +5,7 @@ import { default as localStorageStore } from 'app/core/store'; import { startMeasure, stopMeasure } from 'app/core/utils/metrics'; import { dashboardLoaderSrv } from 'app/features/dashboard/services/DashboardLoaderSrv'; import { getDashboardSrv } from 'app/features/dashboard/services/DashboardSrv'; +import { emitDashboardViewEvent } from 'app/features/dashboard/state/analyticsProcessor'; import { DASHBOARD_FROM_LS_KEY, removeDashboardToFetchFromLocalStorage, @@ -185,6 +186,15 @@ export class DashboardScenePageStateManager extends StateManagerBase) { const eventData: DashboardViewEventPayload = { /** @deprecated */ dashboardId: dashboard.id,