User | Post |
5:11 am August 6, 2009
| Linda
| | |
| Guest
| | |
|
|
Can AWStats track unique visits per page?
In the “Pages-URL” section, I am looking at the “viewed” number, which (please correct me if I’m wrong) is the page hits number, that is, it includes page refreshes. So it’s possible to get a lot of “views” of the same page within 5 minutes from the same IP Address/Browser, if the person viewing the page hits refresh a lot in quick succession. Is it possible to restrict the number of page views only to those new hits that occur only after a certain interval, say an hour, from the same IP address?
Is this information available in the http logs?
Thank you.
|
|
5:19 am August 6, 2009
| Jean-Luc
| | |
| Admin
| posts 1125 | |
|
|
Hi Linda,
This information is available in HTTP logs, but it would not be easy to use it in AWStats. This would require that some special code is added to "mask" these repeated hits.
Alternately you could use an extra section to collect all IP addresses that hit a given page or a given set of pages and identify the IP addresses with abnormally high amounts of hits. This will make the AWStats database files significantly grow though.
|
|
11:50 am August 6, 2009
| Linda
| | |
| Guest
| | |
|
|
Thank you for your answer, Jean-Luc.
If I wrote a script to count unique page views, using input from the HTTP log, I guess my problem would become one of detecting hits from bots, and eliminating them from my count. This is something AWstats does. How would I do it? I guess since AWstats is a sourceforge project, it must be open source, so the code is available, true?
Can you please direct me to the bot-detecting code, and/or offer a brief explanation of how it works?
|
|
1:29 pm August 6, 2009
| Jean-Luc
| | |
| Admin
| posts 1125 | |
|
|
You wrote:
If I wrote a script to count unique page views, using input from the HTTP log, I guess my problem would become one of detecting hits from bots, and eliminating them from my count. This is something AWstats does. How would I do it?
It is very uncommon that bots repeatedly hit the same URL, but, if needed, you can identify bots from their user agent (easy, my recommendation here) or IP address (more reliable, more complicated).
You wrote:
I guess since AWstats is a sourceforge project, it must be open source, so the code is available, true?
You already have the source code. Open awstats.pl with a text editor and you will discover the Perl source code.
|
|
1:48 pm August 6, 2009
| Linda
| | |
| Guest
| | |
|
|
Thank you very much, Jean-Luc.
Permission to access systems files like awstats.pl and /var/log/apache2/access.log is limited at my job, but maybe when I go home, I will try installing awstats.
|
|