From c2b14b190f8d99fffe5c3844a3d7376cae60e6b2 Mon Sep 17 00:00:00 2001 From: Viktor Date: Thu, 5 Dec 2024 04:42:08 -0800 Subject: [PATCH] DemandMonitorPage: onLoginClick - tracking added (#1236) --- .../DemandMonitorPage/DemandMonitorPageContainer.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/web-app/src/modules/demand-monitor-views/DemandMonitorPage/DemandMonitorPageContainer.tsx b/packages/web-app/src/modules/demand-monitor-views/DemandMonitorPage/DemandMonitorPageContainer.tsx index 9a95bc4fb..c244c99bf 100644 --- a/packages/web-app/src/modules/demand-monitor-views/DemandMonitorPage/DemandMonitorPageContainer.tsx +++ b/packages/web-app/src/modules/demand-monitor-views/DemandMonitorPage/DemandMonitorPageContainer.tsx @@ -17,7 +17,10 @@ export const _DemandMonitorPageContainer: FC = ({ isAuthenticated, ...pro } const mapStoreToProps = (store: RootStore): any => ({ - onLoginClick: store.auth.login, + onLoginClick: () => { + store.analytics.trackButtonClicked('login_button', 'Log In Button', 'enabled') + store.auth.login() + }, fetchDemandedHardwarePerformanceList: store.demandMonitor.fetchDemandedHardwarePerformanceList, isAuthenticated: store.auth.isAuthenticated, demandedHardwarePerformanceList: store.demandMonitor.demandedHardwarePerformanceList,