Skip to content

Commit

Permalink
Track Application Upgraded and account logout events.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniloercoli committed Jul 1, 2015
1 parent 33fc70c commit cf96271
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public final class AnalyticsTracker {
public enum Stat {
APPLICATION_OPENED,
APPLICATION_CLOSED,
APPLICATION_STARTED,
APPLICATION_UPGRADED,
THEMES_ACCESSED_THEMES_BROWSER,
THEMES_CHANGED_THEME,
THEMES_PREVIEWED_SITE,
Expand Down Expand Up @@ -84,13 +86,13 @@ public enum Stat {
OPENED_MEDIA_LIBRARY,
OPENED_SETTINGS,
CREATED_ACCOUNT,
ACCOUNT_LOGOUT,
SHARED_ITEM,
ADDED_SELF_HOSTED_SITE,
SIGNED_IN,
SIGNED_INTO_JETPACK,
PERFORMED_JETPACK_SIGN_IN_FROM_STATS_SCREEN,
STATS_SELECTED_INSTALL_JETPACK,
APPLICATION_STARTED,
PUSH_NOTIFICATION_RECEIVED,
SUPPORT_OPENED_HELPSHIFT_SCREEN,
SUPPORT_SENT_REPLY_TO_SUPPORT_MESSAGE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ public void track(AnalyticsTracker.Stat stat, Map<String, ?> properties) {
case APPLICATION_CLOSED:
eventName = "application_closed";
break;
case APPLICATION_UPGRADED:
eventName = "application_upgraded";
break;
case THEMES_ACCESSED_THEMES_BROWSER:
eventName = "themes_theme_browser_accessed";
break;
Expand Down Expand Up @@ -256,6 +259,9 @@ public void track(AnalyticsTracker.Stat stat, Map<String, ?> properties) {
case SIGNED_INTO_JETPACK:
eventName = "signed_into_jetpack";
break;
case ACCOUNT_LOGOUT:
eventName = "account_logout";
break;
case PERFORMED_JETPACK_SIGN_IN_FROM_STATS_SCREEN:
eventName = "stats_screen_signed_into_jetpack";
break;
Expand Down

0 comments on commit cf96271

Please sign in to comment.