settingsAnalyticsEvents.tsx 720 B

12345678910111213141516171819
  1. export type SettingsEventParameters = {
  2. 'notification_settings.index_page_viewed': {};
  3. 'notification_settings.tuning_page_viewed': {
  4. notification_type: string;
  5. };
  6. 'notification_settings.updated_tuning_setting': {
  7. notification_type: string;
  8. tuning_field_type: string;
  9. };
  10. };
  11. export type SettingsEventKey = keyof SettingsEventParameters;
  12. export const settingsEventMap: Record<SettingsEventKey, string | null> = {
  13. 'notification_settings.index_page_viewed': 'Notification Settings: Index Page Viewed',
  14. 'notification_settings.tuning_page_viewed': 'Notification Settings: Tuning Page Viewed',
  15. 'notification_settings.updated_tuning_setting':
  16. 'Notification Settings: Updated Tuning Setting',
  17. };