performanceAnalyticsEvents.tsx 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import {PlatformKey} from 'app/data/platformCategories';
  2. type SampleTransactionParam = {
  3. platform?: PlatformKey;
  4. };
  5. type PerformanceTourParams = {
  6. step: number;
  7. duration: number;
  8. };
  9. export type PerformanceEventParameters = {
  10. 'performance_views.create_sample_transaction': SampleTransactionParam;
  11. 'performance_views.tour.start': {};
  12. 'performance_views.tour.advance': PerformanceTourParams;
  13. 'performance_views.tour.close': PerformanceTourParams;
  14. 'performance_views.landingv2.transactions.sort': {
  15. field?: string;
  16. direction?: string;
  17. };
  18. 'performance_views.overview.navigate.summary': {};
  19. 'performance_views.overview.cellaction': {action?: string};
  20. };
  21. export type PerformanceEventKey = keyof PerformanceEventParameters;
  22. export const performanceEventMap: Record<PerformanceEventKey, string | null> = {
  23. 'performance_views.create_sample_transaction': 'Growth: Performance Sample Transaction',
  24. 'performance_views.tour.start': 'Performance Views: Tour Start',
  25. 'performance_views.tour.advance': 'Performance Views: Tour Advance',
  26. 'performance_views.tour.close': 'Performance Views: Tour Close',
  27. 'performance_views.landingv2.transactions.sort':
  28. 'Performance Views: Landing Transactions Sorted',
  29. 'performance_views.overview.navigate.summary':
  30. 'Performance Views: Overview view summary',
  31. 'performance_views.overview.cellaction': 'Performance Views: Cell Action Clicked',
  32. };