Skip to content

Instantly share code, notes, and snippets.

@Suhail
Created March 28, 2010 08:45
Show Gist options
  • Select an option

  • Save Suhail/346655 to your computer and use it in GitHub Desktop.

Select an option

Save Suhail/346655 to your computer and use it in GitHub Desktop.
player.playSong = function(track_id) {
var artist = songs[track_id]['artist'];
var genre = songs[track_id]['genre'];
mpmetrics.track("Play Song", {"artist": artist, "genre": genre});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment