Welcome to WebmasterWorld Guest from 54.234.63.187

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

Client side & Server Side Stat Logging

About a CS & SS Stat logging issue

     

Bankzy10

2:06 pm on May 29, 2009 (gmt 0)

5+ Year Member



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

9:01 pm on May 30, 2009 (gmt 0)

WebmasterWorld Senior Member piatkow is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



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.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month