|
@@ -21,6 +21,7 @@ import platforms from 'sentry/data/platforms';
|
|
|
import {t, tct} from 'sentry/locale';
|
|
|
import space from 'sentry/styles/space';
|
|
|
import {Project, SelectValue} from 'sentry/types';
|
|
|
+import trackAdvancedAnalyticsEvent from 'sentry/utils/analytics/trackAdvancedAnalyticsEvent';
|
|
|
import EventWaiter from 'sentry/utils/eventWaiter';
|
|
|
import useApi from 'sentry/utils/useApi';
|
|
|
import useOrganization from 'sentry/utils/useOrganization';
|
|
@@ -125,7 +126,17 @@ export function ProfilingOnboardingSidebar(props: CommonSidebarProps) {
|
|
|
}
|
|
|
|
|
|
return (
|
|
|
- <TaskSidebar orientation={orientation} collapsed={collapsed} hidePanel={hidePanel}>
|
|
|
+ <TaskSidebar
|
|
|
+ orientation={orientation}
|
|
|
+ collapsed={collapsed}
|
|
|
+ hidePanel={() => {
|
|
|
+ trackAdvancedAnalyticsEvent('profiling_views.onboarding_action', {
|
|
|
+ organization,
|
|
|
+ action: 'dismissed',
|
|
|
+ });
|
|
|
+ hidePanel();
|
|
|
+ }}
|
|
|
+ >
|
|
|
<TaskSidebarList>
|
|
|
<Heading>{t('Profile Code')}</Heading>
|
|
|
<div
|
|
@@ -282,6 +293,10 @@ function OnboardingContent({
|
|
|
project={currentProject}
|
|
|
eventType="profile"
|
|
|
onIssueReceived={() => {
|
|
|
+ trackAdvancedAnalyticsEvent('profiling_views.onboarding_action', {
|
|
|
+ organization,
|
|
|
+ action: 'done',
|
|
|
+ });
|
|
|
setReceived(true);
|
|
|
}}
|
|
|
>
|