From 611be49875456a52f92e6480e0e7c2da4ace9d7c Mon Sep 17 00:00:00 2001 From: iso9000t <119494473+iso9000t@users.noreply.github.com> Date: Wed, 18 Dec 2024 11:54:57 +0400 Subject: [PATCH] EPMRPP-92207 || Improve event "page_view" for Google Analytics 4 (#4133) --- .../projectSettingsPageContainer.jsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/src/pages/inside/projectSettingsPageContainer/projectSettingsPageContainer.jsx b/app/src/pages/inside/projectSettingsPageContainer/projectSettingsPageContainer.jsx index 2602d3694b..30f99d2650 100644 --- a/app/src/pages/inside/projectSettingsPageContainer/projectSettingsPageContainer.jsx +++ b/app/src/pages/inside/projectSettingsPageContainer/projectSettingsPageContainer.jsx @@ -66,8 +66,8 @@ export const ProjectSettingsPageContainer = () => { const [headerNodes, setHeaderNodes] = useState({}); const createTabLink = useCallback( - (tabName, extendedParams = {}) => ({ - type: PROJECT_SETTINGS_TAB_PAGE, + (tabName, extendedParams = {}, page = PROJECT_SETTINGS_TAB_PAGE) => ({ + type: page, payload: { projectSlug, settingsTab: tabName, organizationSlug, ...extendedParams }, }), [projectSlug, organizationSlug], @@ -79,7 +79,11 @@ export const ProjectSettingsPageContainer = () => { ...acc, [extension.name]: { name: extension.title || extension.name, - link: createTabLink(extension.name), + link: createTabLink( + extension.name, + extension.initialPage?.payload, + extension.initialPage?.type, + ), component: (