Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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.

add comment

2 Answers 2

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
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
    
+1 , informative comment. thanks bud –  stefgosselin May 28 '11 at 19:23
add comment

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

See here for more details !

share|improve this answer
add comment

Your Answer

 
discard

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.