Browse Source

chore(perf): Add new param to the widget analytics (#42162)

To differentiate between segments with and without the new widget menu,
I'm adding a new `boolean` parameter representing the presence of the
new widget design flag.
Dameli Ushbayeva 2 years ago
parent
commit
07febfcee1

+ 1 - 0
static/app/utils/analytics/performanceAnalyticsEvents.tsx

@@ -50,6 +50,7 @@ export type PerformanceEventParameters = {
     widget_type?: string;
   };
   'performance_views.landingv3.widget.switch': {
+    is_new_menu: boolean;
     from_default?: boolean;
     from_widget?: string;
     to_widget?: string;

+ 1 - 0
static/app/views/performance/landing/widgets/components/widgetContainer.tsx

@@ -62,6 +62,7 @@ function trackChartSettingChange(
     from_widget: previousChartSetting,
     to_widget: chartSetting,
     from_default: fromDefault,
+    is_new_menu: organization.features.includes('performance-new-widget-designs'),
   });
 }