Update AnalyticsService.php