Page 1 of 1

bounce page hit counter php

Posted: Thu Aug 07, 2008 12:19 pm
by bertsmilsky
Hi there,

What is the best way to record the bounce rate on a website using php? Also how do you record the exit pages on a website?

I have noticed google analytics uses javascipt. What is the best way to record hits?

Thanks

Re: bounce page hit counter php

Posted: Thu Aug 07, 2008 1:50 pm
by chaos
'Bounce rate' and 'exit page' are concepts that exist at the level of analyzing traffic patterns in an abstract way. They are not some kind of event you get a notification of; in fact, both represent a negative event (a user not requesting any more pages inside an arbitrary timeframe or behavioral context constituting a 'visit'). You can as readily use your plain old server access logs as some wacky sort of JavaScript-based tracking for the raw data. PHP is only relevant by way of being a possible (if probably suboptimal) language for implementing your behavioral analysis in.

This is not a 'code snippet as solution' type problem.