Option to filter out self referrers
markus_petrux - January 14, 2006 - 18:05
| Project: | Statistics filtering |
| Version: | HEAD |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | patch (reviewed & tested by the community) |
Jump to:
Description
Hi!
I just made a little patch (pretty simple actually) for me that maybe worth for someone else.
It adds a new option to allow filtering of self referrers. Please, see attached patch.
Cheers
| Attachment | Size |
|---|---|
| stats_filter_referrers_1.patch | 1.05 KB |

#1
It looks like what you're trying to do here is count visitors instead of page hits. By filtering up front, you're losing logging of all page hits other than the first one in a visit, and also short-circuiting node counting (only the first node visited by someone will show a visit). It would be much better to add a "visits" table to statistics (and still be able to also count hits).
#2
True, it also affects node counting, but that could be fixed (using a different flag). I was mostly interested in having an option to remove self referrers from the accesslog table.
#3
Similar Issues on http://drupal.org/node/91509