Move Analytics code to head tag