added analytics for event