1

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?

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

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

3

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

  • But then it does not track load time. – ilhan May 28 '11 at 7:59
  • 1
    @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
0

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

See here for more details !

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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