Skip to content

Commit

Permalink
chore(issue-details): Add analytics for learn more (#80850)
Browse files Browse the repository at this point in the history
  • Loading branch information
roggenkemper authored Nov 15, 2024
1 parent 5776728 commit dafa065
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static/app/utils/analytics/issueAnalyticsEvents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export type IssueEventParameters = {
'issue_details.sourcemap_wizard_copy': SourceMapWizardParam;
'issue_details.sourcemap_wizard_dismiss': SourceMapWizardParam;
'issue_details.sourcemap_wizard_learn_more': SourceMapWizardParam;
'issue_details.streamline_ui_learn_more': {};
'issue_details.streamline_ui_toggle': {
isEnabled: boolean;
};
Expand Down Expand Up @@ -374,6 +375,7 @@ export const issueEventMap: Record<IssueEventKey, string | null> = {
'Issue Details: Similar Issues: Diff Clicked',
'issue_details.similar_issues.similarity_embeddings_feedback_recieved':
'Issue Details: Similar Issues: Similarity Embeddings Feedback Recieved',
'issue_details.streamline_ui_learn_more': 'Issue Details: Streamline UI Learn More',
'issue_details.streamline_ui_toggle': 'Streamline: UI Toggle Clicked',
'issue_details.view_hierarchy.hover_rendering_system':
'View Hierarchy: Hovered rendering system icon',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ export function NewIssueExperienceButton() {
key: 'learn-more',
label: t('Learn more about the new UI'),
onAction: () => {
trackAnalytics('issue_details.streamline_ui_learn_more', {
organization,
});
window.open(
'https://sentry.zendesk.com/hc/en-us/articles/30882241712795',
'_blank'
Expand Down

0 comments on commit dafa065

Please sign in to comment.