fixed error preventing logging of Google Analytics events