Skip to content

Commit

Permalink
Adding new tracks event when the checklists button is tapped. (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
roundhill authored Jan 22, 2019
1 parent 35dc80f commit 8b3c6c7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Simplenote/Classes/SPNoteEditorViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1357,6 +1357,8 @@ - (void)newButtonAction:(id)sender {

- (void)insertChecklistAction:(id)sender {
[_noteEditorTextView insertOrRemoveChecklist];

[SPTracker trackEditorChecklistInserted];
}

- (void)actionButtonAction:(id)sender {
Expand Down
1 change: 1 addition & 0 deletions Simplenote/Classes/SPTracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
+ (void)refreshMetadataForAnonymousUser;

#pragma mark - Note Editor
+ (void)trackEditorChecklistInserted;
+ (void)trackEditorNoteCreated;
+ (void)trackEditorNoteDeleted;
+ (void)trackEditorNoteRestored;
Expand Down
5 changes: 5 additions & 0 deletions Simplenote/Classes/SPTracker.m
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ + (void)trackEditorActivitiesAccessed
[self trackAutomatticEventWithName:@"editor_activities_accessed" properties:nil];
}

+ (void)trackEditorChecklistInserted
{
[self trackAutomatticEventWithName:@"editor_checklist_inserted" properties:nil];
}

+ (void)trackEditorCollaboratorsAccessed
{
[self trackAutomatticEventWithName:@"editor_collaborators_accessed" properties:nil];
Expand Down

0 comments on commit 8b3c6c7

Please sign in to comment.