Moved GA code to before end of body