     
     Youtube.pauseVideo()
     
+    _gaq.push [
+      '_trackEvent'
+      'Tracks'
+      'Pause'
+      track.get('artist') + ' - ' + track.get('title')
+    ]
+  
   resume: ->
     @playing = on
     
     Youtube.playVideo()
+       
+    _gaq.push [
+      '_trackEvent'
+      'Tracks'
+      'Resume'
+      track.get('artist') + ' - ' + track.get('title')
+    ]
        
   stop: ->
     @playing = off
     
+    _gaq.push [
+      '_trackEvent'
+      'Tracks'
+      'Stop'
+      track.get('artist') + ' - ' + track.get('title')
+    ]
+    
   next: ->    
-    if @history.size() >= 1
+    if @history.size() > 0
       currentTrackResults = @tracks.where
         mbid: @history.last().get('mbid')
       

      track = @tracks.at(0)
      
    @play track, off
      
  doScrobble: (artist, track, image) ->
    $.ajax

      track = @tracks.at(0)
        
    @play(track)
    
    _gaq.push [
      '_trackEvent'
      'Tracks'
      'Next'
      track.get('artist') + ' - ' + track.get('title')
    ]
    
  previous: ->
    #console.log @history
