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

CommentFileSizeAuthor
stats_filter_referrers_1.patch1.05 KBmarkus_petrux

Comments

mikeryan’s picture

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

markus_petrux’s picture

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.

Wolfflow’s picture

Wolfflow’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Closed - link to actual Issue discussion provided.