Skip to content

Commit

Permalink
EPMRPP-92207 || Improve event "page_view" for Google Analytics 4 (#4133)
Browse files Browse the repository at this point in the history
  • Loading branch information
iso9000t authored Dec 18, 2024
1 parent 87defaf commit 611be49
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand All @@ -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: (
<ExtensionLoader
extension={extension}
Expand Down

0 comments on commit 611be49

Please sign in to comment.