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)
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

AttachmentSize
stats_filter_referrers_1.patch1.05 KB

#1

mikeryan - January 22, 2006 - 19:44

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

markus_petrux - January 23, 2006 - 00:55

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

wolfflow - May 13, 2008 - 03:59

Similar Issues on http://drupal.org/node/91509

 
 

Drupal is a registered trademark of Dries Buytaert.