diff --git a/static/app/views/issueDetails/streamline/eventNavigation.tsx b/static/app/views/issueDetails/streamline/eventNavigation.tsx index d5f10e91be9a94..e308ec13f70c2b 100644 --- a/static/app/views/issueDetails/streamline/eventNavigation.tsx +++ b/static/app/views/issueDetails/streamline/eventNavigation.tsx @@ -196,6 +196,12 @@ export function IssueEventNavigation({event, group, query}: IssueEventNavigation { + trackAnalytics('issue_details.issue_content_selected', { + organization, + content: TabName[key], + }); + }} items={[ { key: Tab.DETAILS, @@ -209,12 +215,6 @@ export function IssueEventNavigation({event, group, query}: IssueEventNavigation ...location, pathname: `${baseUrl}${TabPaths[Tab.DETAILS]}`, }, - onAction: () => { - trackAnalytics('issue_details.issue_content_selected', { - organization, - content: TabName[Tab.DETAILS], - }); - }, }, { key: Tab.REPLAYS, @@ -234,12 +234,6 @@ export function IssueEventNavigation({event, group, query}: IssueEventNavigation pathname: `${baseUrl}${TabPaths[Tab.REPLAYS]}`, }, hidden: !issueTypeConfig.replays.enabled, - onAction: () => { - trackAnalytics('issue_details.issue_content_selected', { - organization, - content: TabName[Tab.REPLAYS], - }); - }, }, { key: Tab.ATTACHMENTS, @@ -257,12 +251,6 @@ export function IssueEventNavigation({event, group, query}: IssueEventNavigation pathname: `${baseUrl}${TabPaths[Tab.ATTACHMENTS]}`, }, hidden: !issueTypeConfig.attachments.enabled, - onAction: () => { - trackAnalytics('issue_details.issue_content_selected', { - organization, - content: TabName[Tab.ATTACHMENTS], - }); - }, }, { key: Tab.USER_FEEDBACK, @@ -277,12 +265,6 @@ export function IssueEventNavigation({event, group, query}: IssueEventNavigation pathname: `${baseUrl}${TabPaths[Tab.USER_FEEDBACK]}`, }, hidden: !issueTypeConfig.userFeedback.enabled, - onAction: () => { - trackAnalytics('issue_details.issue_content_selected', { - organization, - content: TabName[Tab.USER_FEEDBACK], - }); - }, }, ]} offset={[-2, 1]}