Use the permalink url, not the permalink track
Extract console logger and errors to separate files