@@ -403,6 +403,45 @@ private AnalyticsTrackerMixpanelInstructionsForStat instructionsForStat(
403403 instructions .setSuperPropertyAndPeoplePropertyToIncrement ("number_of_times_editor_saved_draft" );
404404 instructions .setCurrentDateForPeopleProperty ("last_time_saved_draft" );
405405 break ;
406+ case EDITOR_DISCARDED_CHANGES :
407+ instructions = AnalyticsTrackerMixpanelInstructionsForStat .
408+ mixpanelInstructionsForEventName ("Editor - Discarded Changes" );
409+ instructions .setSuperPropertyAndPeoplePropertyToIncrement ("number_of_times_editor_discarded_changes" );
410+ instructions .setCurrentDateForPeopleProperty ("last_time_discarded_changes" );
411+ break ;
412+ case EDITOR_EDITED_IMAGE :
413+ instructions = AnalyticsTrackerMixpanelInstructionsForStat .
414+ mixpanelInstructionsForEventName ("Editor - Edited Image" );
415+ instructions .setSuperPropertyAndPeoplePropertyToIncrement ("number_of_times_editor_edited_image" );
416+ instructions .setCurrentDateForPeopleProperty ("last_time_edited_image" );
417+ break ;
418+ case EDITOR_ENABLED_NEW_VERSION :
419+ instructions = AnalyticsTrackerMixpanelInstructionsForStat .
420+ mixpanelInstructionsForEventName ("Editor - Enabled New Version" );
421+ instructions .addSuperPropertyToFlag ("enabled_new_editor" );
422+ break ;
423+ case EDITOR_TOGGLED_ON :
424+ instructions = AnalyticsTrackerMixpanelInstructionsForStat .
425+ mixpanelInstructionsForEventName ("Editor - Toggled New Editor On" );
426+ instructions .setPeoplePropertyToValue ("enabled_new_editor" , true );
427+ break ;
428+ case EDITOR_TOGGLED_OFF :
429+ instructions = AnalyticsTrackerMixpanelInstructionsForStat .
430+ mixpanelInstructionsForEventName ("Editor - Toggled New Editor Off" );
431+ instructions .setPeoplePropertyToValue ("enabled_new_editor" , true );
432+ break ;
433+ case EDITOR_UPDLOAD_MEDIA_FAILED :
434+ instructions = AnalyticsTrackerMixpanelInstructionsForStat .
435+ mixpanelInstructionsForEventName ("Editor - Upload Media Failed" );
436+ instructions .setSuperPropertyAndPeoplePropertyToIncrement ("number_of_times_editor_upload_media_failed" );
437+ instructions .setCurrentDateForPeopleProperty ("last_time_editor_upload_media_failed" );
438+ break ;
439+ case EDITOR_UPDLOAD_MEDIA_RETRIED :
440+ instructions = AnalyticsTrackerMixpanelInstructionsForStat .
441+ mixpanelInstructionsForEventName ("Editor - Retried Uploading Media" );
442+ instructions .setSuperPropertyAndPeoplePropertyToIncrement ("number_of_times_editor_retried_uploading_media" );
443+ instructions .setCurrentDateForPeopleProperty ("last_time_editor_retried_uploading_media" );
444+ break ;
406445 case EDITOR_CLOSED :
407446 instructions = AnalyticsTrackerMixpanelInstructionsForStat .
408447 mixpanelInstructionsForEventName ("Editor - Closed" );
@@ -502,6 +541,30 @@ private AnalyticsTrackerMixpanelInstructionsForStat instructionsForStat(
502541 instructions .setSuperPropertyAndPeoplePropertyToIncrement ("number_of_times_editor_tapped_underline" );
503542 instructions .setCurrentDateForPeopleProperty ("last_time_tapped_underline_in_editor" );
504543 break ;
544+ case EDITOR_TAPPED_HTML :
545+ instructions = AnalyticsTrackerMixpanelInstructionsForStat .
546+ mixpanelInstructionsForEventName ("Editor - Tapped HTML Button" );
547+ instructions .setSuperPropertyAndPeoplePropertyToIncrement ("number_of_times_editor_tapped_html" );
548+ instructions .setCurrentDateForPeopleProperty ("last_time_tapped_html_in_editor" );
549+ break ;
550+ case EDITOR_TAPPED_ORDERED_LIST :
551+ instructions = AnalyticsTrackerMixpanelInstructionsForStat .
552+ mixpanelInstructionsForEventName ("Editor - Tapped Ordered List Button" );
553+ instructions .setSuperPropertyAndPeoplePropertyToIncrement ("number_of_times_editor_tapped_ordered_list" );
554+ instructions .setCurrentDateForPeopleProperty ("last_time_tapped_ordered_list_in_editor" );
555+ break ;
556+ case EDITOR_TAPPED_UNLINK :
557+ instructions = AnalyticsTrackerMixpanelInstructionsForStat .
558+ mixpanelInstructionsForEventName ("Editor - Tapped Unlink Button" );
559+ instructions .setSuperPropertyAndPeoplePropertyToIncrement ("number_of_times_editor_tapped_unlink" );
560+ instructions .setCurrentDateForPeopleProperty ("last_time_tapped_unlink_in_editor" );
561+ break ;
562+ case EDITOR_TAPPED_UNORDERED_LIST :
563+ instructions = AnalyticsTrackerMixpanelInstructionsForStat .
564+ mixpanelInstructionsForEventName ("Editor - Tapped Unordered List Button" );
565+ instructions .setSuperPropertyAndPeoplePropertyToIncrement ("number_of_times_editor_tapped_unordered_list" );
566+ instructions .setCurrentDateForPeopleProperty ("last_time_tapped_unordered_list_in_editor" );
567+ break ;
505568 case NOTIFICATIONS_ACCESSED :
506569 instructions = AnalyticsTrackerMixpanelInstructionsForStat .
507570 mixpanelInstructionsForEventName ("Notifications - Accessed" );
0 commit comments