Add integration test for analytics.