Merged analytics code into UIResponder.