This little JavaScript snippet allows you to handle the events (play, pause, ended, cued, buffering) of any Youtube embedded video and track it to your favorite analytics solution. It handles Google Analytics per default automaticaly, but you can use your own analytics solution easily.