Move analytics code to before the </head> tag