homepage Welcome to WebmasterWorld Guest from 54.205.241.107
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

    
Client side & Server Side Stat Logging
About a CS & SS Stat logging issue
Bankzy10

5+ Year Member



 
Msg#: 3922408 posted 2:06 pm on May 29, 2009 (gmt 0)

Hi I am fairly new when it comes to stat logging and have done a few examples just to get used to it. Anyway, I was wondering exactly what the advantages and disadvantages of using Client Side (JavaScript) logging over Server Side (ASP) logging and visa versa. Can anyone tell me what both are capable of - like what stats they can log.

I know that you can log stats into a text file with doing it server side, can you log the client stats on the client's computer (or elsewhere) using Javascript - say in a cookie or something?

Any help would be muchly appreciated.

Thanks, Bankzy10

P.S Sorry if this is in the wrong section, I wasn't really sure where to put it so I thought of it to be best to post it in here.

 

piatkow

WebmasterWorld Senior Member piatkow us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3922408 posted 9:01 pm on May 30, 2009 (gmt 0)

All counting is done on the server. A third party counter service will typically used JS to drive the download of a cookie and a graphic. The number of graphics downloaded determines the number of page views while some black magic with the cookie determines counts unique visits. The limitations are that it will always undercount as JS may be blocked, cookies may be blocked, graphics may be blocked, the visitor may navigate away from the page before the graphic downloads, you forgot to put the code on all the pages, etc etc. It does normally ignore bots as they don't download the graphic. There are two reasons for using this method:
1. Your host may not provide access to the stats. "Free" hosting services typically don't
2. Your host may provide the raw stats but leave you to buy some analysis software.

Server stats give you details of all the bots that visit which is valuable. My own hosting service gives me the raw stats and some pretty graphs but no in depth analysis of stuff like search strings or how people navigate the site. Its easier for me to use a third party stat counter to get the "real" visits analysed and to look at the raw stats to check for stuff like hot-linking, rss usage and bots.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / New To Web Development
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