       )
     , (err, events) ->
       $scope.availableEvents = events
-      # $analytics.eventTrack('events_select_length',
-      #   category: 'interesting'
-      #   label: "#{events.length}"
-      # )
       $intercom.trackEvent('events_select_length',
         event_count: events.length
       )

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


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