HG-191 Re-implement Google Analytics event tracking

https://wikia-inc.atlassian.net/browse/HG-191
I would pass window to the constructor so the class does not rely on global variables.