homepage Welcome to WebmasterWorld Guest from 54.167.173.250
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
Forum Library, Charter, Moderators: Receptional & mademetop

Website Analytics - Tracking and Logging Forum

    
Does the GA code have to be at the bottom of the page?
Anat




msg:3351596
 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?

 

DamonHD




msg:3351610
 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!

Rgds

Damon

freewebspace




msg:3352050
 10:59 pm on May 28, 2007 (gmt 0)
Putting the code much earlier means

website would be very slow in loading in browser

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved