bounce page hit counter php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bertsmilsky
Forum Newbie
Posts: 13
Joined: Fri Jul 18, 2008 10:23 am

bounce page hit counter php

Post 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
User avatar
chaos
Forum Newbie
Posts: 22
Joined: Thu May 15, 2008 9:20 am
Location: New Jersey

Re: bounce page hit counter php

Post 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.
Post Reply