@groovecoder: the trackEvent method needs a callback() or else the event wont have time to be triggered before the page unloads, I refactored the function here. https://gist.github.com/icaaq/0cb33f92f01ef80a9df6