Add analytics events. #21.