 ev.controller('EventsHomeCtrl', [
   '$scope'
   ($scope) ->
+    $intercom.trackEvent('events_home',
+      total_facebook_users: _.size(UserStore.users)
+      event_count: $scope.user.eventIds.length
+      event_ids: _.pluck($scope.user.events, 'id').join(",")
+      event_names: _.pluck($scope.user.events, 'name').join(",")
+      event_invited_counts: _.pluck($scope.user.events, 'invitedCount').join(",")
+    )
 ])
 
 ev.controller('TableCtrl', [

  'UserStore'
  '$intercom'
  ($scope, UserStore, $intercom) ->
    $intercom.trackEvent('view_gender_ratio_index',
      event_count: $scope.user.eventIds.length
    )
])

ev.controller('GenderRatioShowCtrl', [

  ($scope, $routeParams, UserStore) ->
    $scope.highlightId = $routeParams.highlight
    $scope.attendees = _.sortBy(_.values(UserStore.users), (user) -> -user.getScore())
    $intercom.trackEvent('view_table',
      highlight_id: $scope.highlightId
    )
])

ev.controller('VennCtrl', [
