Removed analytics functions from scripts.php