Maybe this is the wrong place to ask, but. . .
I'm looking for a bit of code that I can use in a cgi file to count the number of seconds each individual viewer has looked at a particular page in a website. (With a statistical running count to be updated automatically.) Is there such a thing out there? I'd appreciate a link to some simple code (Perl is most desirable) that does this, if it exists. Something similar to this:
# of viewers caclculated - 100
% of visitor viewing time
0 to 1 seconds - 10%
1+ to 5 seconds - 30%
5+ to 10 seconds - 25%
10+ to 30 seconds - 15%
30+ to 60 seconds - 15%
60+ seconds - 5%