| Welcome to WebmasterWorld Guest from 220.127.116.11 |
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?|
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?
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!
|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