Page MenuHomeMiraheze

Provide public access to sanitised analytics data
Closed, DeclinedPublic

Description

https://wiki.climatechange.ai/wiki/

We want to have some basic statistics of our page views (ideally as available as time series aggregated daily) to see if and how usage changes after specific actions of advertising our Wiki. Aggregated data without user tracking is totally sufficient.

Our initial idea was to integrate it with our Google Analytics using the Google Analytics Integration or the HeadScript, which seems deprecated by Miraheze as discussed here because of privacy concerns.

Using this alternative Matomo and MatomoAnalytics seems overkill, as we are already using Google Analytics for the remainder of the pages.

This overview produced by the Special:Analytics of the plugin is not enough, as the aggregation is quite coarse and would require some hacky script to scrape off daily to get daily usage.

However, it seems, that generally the Wikimedia API provides the capability to get pageviews, as documented here:

However, it seems not available in our installation, as this query

https://wiki.climatechange.ai/w/api.php?action=query&format=json&prop=pageviews&titles=Welcome_to_the_Climate_Change_AI_Wiki

Returns: Unrecognized value for parameter "prop": pageviews

Similarly, the REST API here offers the metrics of pageviews, which is not available for our wiki:

What is the best approach for our installation?
Can the Miraheze admins activate the pageviews in the API or are we bound to using Matomo? Didn't find anything in the Special:ManageWiki to do it myself.

Event Timeline

The API used on Wikimedia is provided by Extension:PageViewInfo. I do not think it is compatible with our setup.

I really like the idea but I'm not sure of an existing solution that will allow us. Triaging low instead of declining as I'd be willing to look into it but we don't have the time, resources or knowledge for the next few weeks.

I think our best aim would be some easily parseable dump of the data in matomo with any PII stripped out and aggregated sensibly.

RhinosF1 lowered the priority of this task from Normal to Low.Jun 22 2021, 21:13
RhinosF1 moved this task from Backlog to Long Term on the MediaWiki (SRE) board.
RhinosF1 edited projects, added MatomoAnalytics; removed MediaWiki.
RhinosF1 renamed this task from Any possibility to get page view statistics or analytics without Matomo? to Provide public access to sanitised analytics data.Jun 22 2021, 21:14

I really like the idea but I'm not sure of an existing solution that will allow us. Triaging low instead of declining as I'd be willing to look into it but we don't have the time, resources or knowledge for the next few weeks.

I think our best aim would be some easily parseable dump of the data in matomo with any PII stripped out and aggregated sensibly.

Yeah, I came here to close this as invalid, as I think community noticeboard is the more appropriate venue here (CN thread). Bukkit, in good-faith and with good intentions, suggested MarcusV raise this on Phabricator, but as it's not really a bug or a configuration request, I wasn't sure that it was appropriate for Phabricator.

Potentially, there is a potential extension request here, as Universal Omega articulated, or a feature request enhancement to MatomoAnalytics, so perhaps triaging this as low is reasonable.

Potentially, there is a potential extension request here, as Universal Omega articulated, or a feature request enhancement to MatomoAnalytics, so perhaps triaging this as low is reasonable.

Exactly how it's implemented is not final yet but this is a more than valid feature request. I don't see how CN would be more appropriate.

I don't think this can really be done to MatomoAnalytics. Also doing so provides potential negative performance impact. Wikimedia has higher resources to allow for their API. I'm not certain doing so with MatomoAnalytics is a good idea.

Universal_Omega claimed this task.

Declining per what I said above. This I don't personally feel is a good idea to do with MatomoAnalytics at the moment.