HG-191 Re-implement Google Analytics event tracking

https://wikia-inc.atlassian.net/browse/HG-191
Evgeniy suggested passing in a variable for window, although maybe I misunderstood his intention.