Welcome to WebmasterWorld Guest from

Forum Moderators: keyplyr & mack

Message Too Old, No Replies

Client side & Server Side Stat Logging

About a CS & SS Stat logging issue

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

New User

5+ Year Member

joined:May 29, 2009
posts: 1
votes: 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.

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

Senior Member from GB 

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

joined:Apr 5, 2006
votes: 45

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.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members