Relocate ga code to head.