On Fri, 2008-02-22 at 12:52 +0200, Ali Hardogan wrote:

> I'd like to count the page views as the HTTP requests are proxied
> through Squid.
> 
> If I blindly count the HTTP GETs, I get a wrong (higher) number
> because for the same page multiple HTTP GET commands are issued.
> 
> How can I get an accurate count of page views (or identify the log
> entry that represents a page view -- whether typed-in or clicked by
> the end user)?

HTTP does not define a "page", and Squid does not know what it is. You
can come up with many different heuristics that determine what is a page
(based on URLs, content type, and even response content), and count
according to your heuristic.

Alex.


Reply via email to