fix type and change ga code position