Fixed an issue where Analytics events were not being recorded.