Add IAnalyticsService and integrate it with commands service