Fixes #10. Fix bug that Google Analytics events not being tracked.