Talk:Pageviews Analysis

From Meta, a Wikimedia project coordination wiki
Welcome to the Pageviews Analysis feedback forum

This is the forum to provide feature requests, bug reports, and general feedback for the Pageviews Analysis suite of tools.

Some key notes when making a post:

Shortcut:
WT:PAGEVIEWS

Massviews by "search" namespace filter[edit]

The namespace filter is (to my knowledge) not exposed to mw:Help:CirrusSearch syntax, and also not shown in the Massviews tool interface. By inspecting network requests, I'm happy to see that adds namespace=0 as a condition. However, this is not said in the interface, and, on the results page, the title links to Special:Search without that filter, thus giving the impression to people that the total count is for all namespaces.

On the results page, it links to [1] which matches 12,000 pages, whereas the Massviews tool (correctly) considered the 6,000 main space articles only.

My suggestion would be to fix the title link as first step. Perhaps as a feature request it'd be nice to be able to control it, though personally it's working fine as-is (main space is what I use it for). Thanks for this awesome tool! Krinkle (talk) 13:28, 11 January 2024 (UTC)[reply]

Acknowledging this, and commenting so this thread doesn't get archived :)
I plan to get this in as part of a series of updates to come over the next few months. MusikAnimal (WMF) (talk) 16:19, 14 February 2024 (UTC)[reply]

How to use massviews to search for all English Wikipedia pages which use references from a source?[edit]

Hi all

This is a question rather than a bug report but this seems like a sensible place to ask it. I want to find all the pages on English Wikipedia (and later from other Wikipedias) which use references from a specific source, starting with FAO.

I've managed to work out with help that I can use this query for all articles on English Wikipedia which includes fao.org in the wikitext.

However I've realised this will miss out any references sources from FAO which don't include the URL, e.g if the reference was generated from an ISBN. I think this can be captured if it would be possible to add to the previous search to look for either fao.org or publisher=FAO on the page.

Can someone tell me how to add this to the existing query?

Thanks very much

John Cummings (talk) 08:04, 30 January 2024 (UTC)[reply]

Hey MusikAnimal (WMF), Kaldari, Mforns (WMF) do you have any ideas for this? I basically want to work out a way of querying for the combined results of insource:"fao.org" and insource:"publisher=FAO" where its showing the results for if either is present, not for if both are present. Thanks :) John Cummings (talk) 10:13, 1 February 2024 (UTC)[reply]
@John Cummings: Send u me over email the page titles (duplicate names, i will remove) and the date interval. Dušan Kreheľ (talk) 16:23, 6 February 2024 (UTC)[reply]
Hi, thanks very much for the offer, but I already know how to do that. I need to combine the results into one query in this tool specifically because I need it to be run by people with lower technical skills who can just click one button and get the answer. John Cummings (talk) 00:15, 7 February 2024 (UTC)[reply]
Hi @John Cummings! Thanks for reaching out! It seems the Massviews utility uses CirrusSearch to find the pages, and this engine provides limited regular expression capabilities, see: https://www.mediawiki.org/wiki/Help:CirrusSearch#Insource. I've tried to use the query insource:/(fao.org|publisher=FAO)/, which should return all pages containing fao.org or publisher=FAO. It seemed to work, however I don't know if the results are what you expect! Mforns (WMF) (talk) 16:33, 8 February 2024 (UTC)[reply]
Hi Mforns (WMF) thanks so much :) Yes this is the same number I got from doing it a very long way round. I'll write this up in the documentation, if you have any suggestions of where to put it please let me know. One issue I have is that because of the special characters you can't acually link to this query in a link, (link) it breaks in both a link on Wiki and also in things like Whastapp, even just copying and pasting the links doesn't work. I think Massviews is making some kind of URLs that are broken in some way, I started a Phabricator ticket about it here. If you have any ideas of how to avoid this I'd greatly appreaciate it. Thanks again, John Cummings (talk) 00:51, 9 February 2024 (UTC)[reply]
Update, aparently there was a aspecial character in there causing problems, aparently using insource:fao insource:/(fao.org|publisher=FAO)/ will work and not make the URL break. https://pageviews.wmcloud.org/massviews/?platform=all-access&agent=user&source=search&range=latest-20&project=en.wikipedia.org&sort=views&direction=1&view=list&target=insource%3Afao+insource%3A%2F%28fao.org%7Cpublisher%3DFAO%29%2F.. Thanks, John Cummings (talk) 06:10, 9 February 2024 (UTC)[reply]

Bug when accessing multiple pages in dates one of them didn't exist[edit]

I hit a bug while accidentally attempting to use the tool for articles that were not created yet in the period defined in the "Dates" field. In particular, I tried to access the stats for article Rui Rocha throughout 2021, while the page was only created in 2022.

If I enter a single page, I get an error saying "Rui Rocha: Error querying Pageviews API - Not Found". This is not really user-friendly (an error like "Page Rui Rocha did not exist in the specified period" would be better), but it's at least minimally informative and not too scary.

But if I enter multiple pages including the one that did not exist in the specified period, I get the message "Fatal error: TypeError: i is undefined" along with a red pop-up saying "Fatal error: Please refresh the page to try again or report this issue".

IMO both issues should be handled more gracefully, but the second one in particular appears to be missing a guard in the code. --Waldyrious (talk) 19:32, 5 February 2024 (UTC)[reply]

I will get this fixed. Thanks for reporting and providing detailed steps to reproduce the issue! :) MusikAnimal (WMF) (talk) 16:20, 14 February 2024 (UTC)[reply]

Number of observers[edit]

The number of observers, if less than 30, is not displayed. Xedin (?!) 13:54, 12 February 2024 (UTC)[reply]

If there are fewer than 30 page watchers, the exact number is hidden (except for admins). This is something imposed by MediaWiki, not Pageviews Analysis. MusikAnimal (WMF) (talk) 17:43, 13 February 2024 (UTC)[reply]

February 17th and 18th down to zero on Wiki.pt[edit]

Tracked in Phabricator:
Task T357910

Hey guys. The last two viewing days (February 17th and 18th) are not indicated on the Portuguese Wikipedia. All the articles I consult appear at zero. See here, eg. Regards, Sturm (talk) 03:11, 19 February 2024 (UTC)[reply]

It's missing in English too, seems a generalized problem. Igordebraga (talk) 03:27, 19 February 2024 (UTC)[reply]
Also in Hebrew Wikiedia. היידן (talk) 04:10, 19 February 2024 (UTC)[reply]
I've filled phab:T357910 Framawiki (talk) 15:23, 19 February 2024 (UTC)[reply]
@Framawiki: Thanks for the ticket, now marked as resolved, but... Its not working again, 21st February. Sturm (talk) 03:03, 21 February 2024 (UTC)[reply]
@Framawiki: Reported: T358132. Dušan Kreheľ (talk) 18:04, 21 February 2024 (UTC)[reply]
@Framawiki: I see, it's fixed. Dušan Kreheľ (talk) 09:30, 22 February 2024 (UTC)[reply]

Article WP (fr) J. Minot (created February, 17) : Pageviews doesn't work[edit]

La requête Statistiques de consultation (Analyse des pages vues) retourne le message d'erreur suivant : J. Minot: Erreur lors de la requête Pageviews API - Not Found Boncoincoin (talk) 08:16, 19 February 2024 (UTC)Boncoincoin[reply]

See message just above :) i've filled phab:T357910. Framawiki (talk) 15:24, 19 February 2024 (UTC)[reply]
It's OK now. Many thanks. Boncoincoin (talk) 16:22, 19 February 2024 (UTC)Boncoincoin[reply]