From 3254b8718c789889204c7e2a1b9773282c771719 Mon Sep 17 00:00:00 2001 From: maria-hambardzumian <164881199+maria-hambardzumian@users.noreply.github.com> Date: Wed, 24 Jul 2024 14:57:56 +0400 Subject: [PATCH] EPMRPP-92637 || Wrong value in "element_name" parameter is sent when clicking on Dashboard name (#3929) --- .../main/analytics/events/ga4Events/dashboardsPageEvents.js | 4 ++-- .../dashboardList/dashboardTable/dashboardTableColumns.jsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/components/main/analytics/events/ga4Events/dashboardsPageEvents.js b/app/src/components/main/analytics/events/ga4Events/dashboardsPageEvents.js index 3abf3bb407..1623136df2 100644 --- a/app/src/components/main/analytics/events/ga4Events/dashboardsPageEvents.js +++ b/app/src/components/main/analytics/events/ga4Events/dashboardsPageEvents.js @@ -95,9 +95,9 @@ export const DASHBOARD_EVENTS = { number: dashboardId, }), - clickOnDashboardName: (dashboardName, dashboardId) => ({ + clickOnDashboardName: (dashboardId) => ({ ...getBasicClickEventParameters(DASHBOARDS), - element_name: dashboardName, + element_name: 'dashboard_name', number: dashboardId, }), diff --git a/app/src/pages/inside/dashboardPage/dashboardList/dashboardTable/dashboardTableColumns.jsx b/app/src/pages/inside/dashboardPage/dashboardList/dashboardTable/dashboardTableColumns.jsx index bfb541c28f..28f4cf9fe1 100644 --- a/app/src/pages/inside/dashboardPage/dashboardList/dashboardTable/dashboardTableColumns.jsx +++ b/app/src/pages/inside/dashboardPage/dashboardList/dashboardTable/dashboardTableColumns.jsx @@ -34,7 +34,7 @@ export const NameColumn = track()( className={cx(className, 'name')} to={{ type: PROJECT_DASHBOARD_ITEM_PAGE, payload: { projectId, dashboardId } }} onClick={() => { - trackEvent(DASHBOARD_EVENTS.clickOnDashboardName(name, dashboardId)); + trackEvent(DASHBOARD_EVENTS.clickOnDashboardName(dashboardId)); }} > {name}