Page MenuHomePhabricator

Extension to provide aggregate page view statistics from Squid access logs
Open, LowPublicFeature

Description

I feel the number of hits (total number and unique number) would be an interesting addition to our general layout.

While a counter on the bottom of every page may not be very preferable, a "Special:" page for example would do the trick.


Version: unspecified
Severity: enhancement

Details

Reference
bz10633

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:48 PM
bzimport set Reference to bz10633.
bzimport added a subscriber: Unknown Object (MLST).

ayg wrote:

This functionality exists in the software. It's not enabled due to caching issues. Now that we have Squid logs, it *might* be reasonable to write something up that would log sheer numbers from the live stream and periodically import them into the database, or something of that nature. I'll refile this in the spirit I think it was probably intended.

robchur wrote:

(Adding Tim to CC list, since he developed our current Squid logging infrastructure...)

Lemme just add that a total hit count is nigh-useless; recording hit rates over time would be much more interesting.

A graph (can be an HTML one) for example could be useful

vacuum wrote:

Any progress on this?

vacuum wrote:

I'm working on a solution for temporal statistics; initially for last hours, last days and last weeks. To make it effective it seems that some portions of the code has to run inside mw-core and with a altered table definition for mw_page, but it should be rather simple to disable the complete functionality and if necessary also to use the table as is with the existing statistics.

Initial work indicates a basic solution with two additional columns for hours, two additional columns for days and two additional columns for weeks. The number of additional columns can be increased or set to zero. In addition there will be a column for last page view. According to some analysis it seems like some high traffic sites (en.wp) could use subhour resolutions but the external squid logs isn't available fast enough for this to be of real value.

As wikis can be hidden behind squids, it must be possible to update the statistics from external sources. Probably there should be an option to do some kind of lightweight AJAX-like update of the statistics.

Present development are for MW 1.12.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:01 AM
Aklapper removed a subscriber: wikibugs-l-list.