Add analytics events to various places.