Updated analytics code, added localURL to init.php