Update Google Analytics code and move all default layout scripts to header