moved GA code into head