| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Does the GA code have to be at the bottom of the page?|
| 8:45 am on May 28, 2007 (gmt 0)|
They tell you to place it just before </body>.
I assume that this is done so that when users don't load the entire page, they don't get counted?
What happens if I place it higher up the page? I have an element in dynamic PHP pages that sets up the page type higher up - can I place my code there?
| 9:51 am on May 28, 2007 (gmt 0)|
They suggest just above </body> so that all of your page will display as quickly as possible even if the G code is slow to load for some reason.
They used to recommend putting their code much earlier, but people complained. It isn't any sort of conspiracy!
| 10:59 pm on May 28, 2007 (gmt 0)|
|Putting the code much earlier means|
website would be very slow in loading in browser
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved