Skip to content

Commit

Permalink
Adding a new tracks event for when a checklist is inserted. (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
roundhill authored and theck13 committed Jan 22, 2019
1 parent bfef19d commit e02ab8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,12 @@ public boolean onOptionsItemSelected(MenuItem item) {

private void insertChecklist() {
mContentEditText.insertChecklist();

AnalyticsTracker.track(
AnalyticsTracker.Stat.EDITOR_CHECKLIST_INSERTED,
AnalyticsTracker.CATEGORY_NOTE,
"toolbar_button"
);
}

private void deleteNote() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public enum Stat {
EDITOR_NOTE_DELETED,
EDITOR_NOTE_RESTORED,
EDITOR_ACTIVITIES_ACCESSED,
EDITOR_CHECKLIST_INSERTED,
EDITOR_COLLABORATORS_ACCESSED,
EDITOR_VERSIONS_ACCESSED,
EDITOR_NOTE_PUBLISHED,
Expand Down

0 comments on commit e02ab8c

Please sign in to comment.