Update AnalyticsController.php