Added more logging to Analytics.