Refactor the Layout page into several views and move the Google Analytics object into a separate script file.