Skip to content

Instantly share code, notes, and snippets.

@Suhail
Created March 28, 2010 08:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Suhail/346655 to your computer and use it in GitHub Desktop.
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