moved GA code to top of scripts