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


ev.controller('EventsHomeCtrl', [
  '$scope'
  ($scope) ->
    $intercom.trackEvent('events_home',
      total_facebook_users: _.size(UserStore.users)
      event_count: $scope.user.eventIds.length

      )
    , (err, events) ->
      $scope.availableEvents = events
      $intercom.trackEvent('events_select_length',
        event_count: events.length
      )
