Google suggests that the GA code should be in the head section of the page(s) BUT you can also put it in the body which will mean it goes at the bottom of the page and thus you knock off a few milliseconds of page load time.
BUT …
This will seriously screw with a Repository page, all you’ll get is 500 server errors
SO …
by all means pop the GA code in the body BUT NOT if you have Repository on your site.