Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I setup a Gogole Analytics code it says me put it within head tags. But when I want to link it with my AdSense account it says "Be sure to leave the Google Analytics tracking code at the bottom of your pages."

Also it says "Paste this code [Google Analytics and Adsense integration code] at the top of any webpage in this domain that contains AdSense ads." Where? After or after after Analytics code?

share|improve this question

migrated from stackoverflow.com May 30 '11 at 18:04

This question came from our site for professional and enthusiast programmers.

This is always better off at the bottom of the page, this way you are sure it does not affect your page loading time.

share|improve this answer
But then it does not track load time. – ilhan May 28 '11 at 7:59
@ihan the location of the code has nothing to do with whether it tracks load time. The load time tracker is a separate call from the traditional load, and only works in Chrome and IE9, and IE<9 with Google toolbar installed. It doesn't do the measuring itself; instead, it relies on a measurement API that's built in to the browser. – Yahel May 28 '11 at 18:02
+1 , informative comment. thanks bud – stefgosselin May 28 '11 at 19:23

yes at @stefgosselin said putting it in the end does speed up load time !

See here for more details !

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.