Skip to content

Commit

Permalink
Track Analytics usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniloercoli committed Sep 14, 2015
1 parent 1898b9d commit 49a090d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
Expand Up @@ -48,6 +48,9 @@ public enum Stat {
STATS_OPENED_WEB_VERSION,
STATS_TAPPED_BAR_CHART,
STATS_SCROLLED_TO_BOTTOM,
STATS_WIDGET_ADDED,
STATS_WIDGET_REMOVED,
STATS_WIDGET_TAPPED,
EDITOR_CREATED_POST,
EDITOR_ADDED_PHOTO_VIA_LOCAL_LIBRARY,
EDITOR_ADDED_PHOTO_VIA_WP_MEDIA_LIBRARY,
Expand Down
Expand Up @@ -634,6 +634,18 @@ private AnalyticsTrackerMixpanelInstructionsForStat instructionsForStat(
instructions = AnalyticsTrackerMixpanelInstructionsForStat.
mixpanelInstructionsForEventName("Selected Install Jetpack");
break;
case STATS_WIDGET_ADDED:
instructions = AnalyticsTrackerMixpanelInstructionsForStat.
mixpanelInstructionsForEventName("Stats Widget Added");
break;
case STATS_WIDGET_REMOVED:
instructions = AnalyticsTrackerMixpanelInstructionsForStat.
mixpanelInstructionsForEventName("Stats Widget Removed");
break;
case STATS_WIDGET_TAPPED:
instructions = AnalyticsTrackerMixpanelInstructionsForStat.
mixpanelInstructionsForEventName("Stats Widget Tapped");
break;
case PUSH_NOTIFICATION_RECEIVED:
instructions = AnalyticsTrackerMixpanelInstructionsForStat.
mixpanelInstructionsForEventName("Push Notification Received");
Expand Down
Expand Up @@ -279,6 +279,15 @@ public void track(AnalyticsTracker.Stat stat, Map<String, ?> properties) {
case STATS_SELECTED_INSTALL_JETPACK:
eventName = "stats_install_jetpack_selected";
break;
case STATS_WIDGET_ADDED:
eventName = "stats_widget_added";
break;
case STATS_WIDGET_REMOVED:
eventName = "stats_widget_removed";
break;
case STATS_WIDGET_TAPPED:
eventName = "stats_widget_tapped";
break;
case PUSH_NOTIFICATION_RECEIVED:
eventName = "push_notification_received";
break;
Expand Down

0 comments on commit 49a090d

Please sign in to comment.