Talk:Pageviews Analysis
Add topicPageviews Analysis – Documentation • Feedback forum • Issue tracker • GitHub • translatewiki.net • #wikimedia-cloudconnect
| 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:
|
||
Past year option?
[edit]Hello. Thanks to those who developed this tool, it's extremely useful.
I'm wondering, would it be possible to add a "Past year" option re: date range? As in, the last 365 days? The current "Last year" option instead does the whole year prior to the current year (e.g., all of 2025 if the current year is 2026). A last 365 days option would be really helpful for my use, especially for links. Even if only added/accessible in the URL params, that would be really helpful still.
Another thing—there seem to be some issues on mobile, for instance difficulty/impossibility of selecting a date range. I hope it's possible for that to be fixed at some point.
Thank you! – AlyInWikiWonderland (talk) 23:56, 7 March 2026 (UTC)
- I too would like to see more of these buttons. At least change the default view of 20 days to 90 days. Aloysius Jr (talk) 11:21, 12 March 2026 (UTC)
- This isn't hard to do so I will try to look into it. Thanks for the feedback, MusikAnimal (WMF) (talk) 22:57, 12 March 2026 (UTC)
- Actually, as it turns out, I think it may already work via URL params—"latest-365" for the "range" param. No UI option, but still viable and handy. – AlyInWikiWonderland (talk) 04:07, 13 March 2026 (UTC)
- Yes! :) I should have mentioned that. See also the URL structure documentation, accessible via the "Help" menu for each tool in the suite.
- You could add a link on your userpage to show the last year's worth of data, for example, with something like:
[https://pageviews.toolforge.org/?project=en.wikipedia.org&pages={{FULLPAGENAMEE}}&range=latest-365 Past year's pageviews for this page]
- The UI options are of course easy to add, too. With the widget we're using now, there's exactly just enough room to add a "Past year" option, so I'll do it :)
- The default of 20 days was from the original demo app by the Data Engineering team. I don't know why it was chosen or why I kept it that way, to be honest… How about changing it to the past 30 days? A small data sample I think is best for demonstration purposes when first loading the page. 30 days would presumably still look decent enough on smaller devices but give the more meaningful metric of roughly one month's worth of data. MusikAnimal (WMF) (talk) 04:23, 13 March 2026 (UTC)
- The default is now 30! Thank you. Aloysius Jr (talk) 12:15, 17 March 2026 (UTC)
- That's great, thank you! – AlyInWikiWonderland (talk) 00:20, 18 March 2026 (UTC)
- Actually, as it turns out, I think it may already work via URL params—"latest-365" for the "range" param. No UI option, but still viable and handy. – AlyInWikiWonderland (talk) 04:07, 13 March 2026 (UTC)
Massviews not returning any results
[edit]- Please provide a link to the results that are breaking for you.
- Please explain what is broken.
- Ultimately, the search returns no results at all: Totals: 0 pages, 0 pageviews, 0 daily average. This is for a PagePile with 9,471 pages in it. As the search progresses, there are a lot of orange "Error querying Pageviews API - Unknown" errors
- Please say what browser you're using
- Edge 145
- What operating system and version are you using?
- MacOS Tahoe 26.3.1
I have noticed this behaviour over the past few days - there are a lot of orange "Error querying Pageviews API - Unknown" as a search continues, and I only get Massviews statistics for a small subset of a large PagePile. Today the subset is zero. Thanks for your help! Cheers, SunloungerFrog (talk) 12:40, 12 March 2026 (UTC)
- Most of the "Error querying Pageviews API" errors are due to phab:T219857. It used to work perfectly but hasn't in quite some time. It's annoying, but one workaround is to just keep refreshing until eventually it will process all pages. I see in this case that doesn't work either, though. I have been meaning to add some retry logic in the tool to get around this, but I don't know for certain if that'd actually fix it or not, and it's also a considerable amount of work. I'll comment on phab:T219857 and see what can be done. Apologies for the inconvenience! MusikAnimal (WMF) (talk) 22:57, 12 March 2026 (UTC)
- @MusikAnimal (WMF), thanks for the response. That makes sense, annoying as it is. I've subscribed to the ticket. Thank you in advance for anything you are able to do to get Massviews working again, even if it means it runs slower. Cheers, SunloungerFrog (talk) 00:31, 13 March 2026 (UTC)
- Just to follow up - I tried some Massviews against some Pagepiles again this morning. The first one, a batch of ~600, worked fine. The second, a batch of ~1,900, worked fine for about the first 1,000 pages, then the orange "Error querying Pageviews API - Unknown" errors started appearing. I then waited for a bit and ran the first batch again, and got the orange errors immediately, ultimately returning no results, so I suspect my browser/IP address combo (or however "client" is defined) got blocked. It is annoying that https://doc.wikimedia.org/generated-data-platform/aqs/analytics-api/documentation/access-policy.html#rate-limits is so vague - clearly there are some explicit rate limits, because otherwise how does the block get triggered, and it would be nice to know those up front. Cheers, SunloungerFrog (talk) 06:42, 13 March 2026 (UTC)
- @MusikAnimal (WMF):. Above you only mention Pagepiles with a lot of pages. But recently Massviews Analysis for Categories only returns an error message like "An unknown error occurred when querying Category:Brazilian female single skaters" for all categories, the category in the example just contains three articles. The Massviews Analysis worked fine earlier this week for categories with several hundred articles, but since this morning the only result I get is the mentioned error message. Larske (talk) 15:04, 13 March 2026 (UTC)
- That's exactly what I also get. Every time, for each Category, the same error today Pschemmo (talk) 15:13, 13 March 2026 (UTC)
- It's all the same issue. They changed the API limits, apparently. I'll make it a priority to get a fix in. Thanks for your patience, MusikAnimal (WMF) (talk) 06:05, 14 March 2026 (UTC)
- Hey, thank you, I'm also getting the same error. I find this tool really useful on what cleaning to prioritise, and i'm sure many other editors do too, Tpbradbury (talk) 14:37, 16 March 2026 (UTC)
- The category search tool is so awesome for casual research, hope it is back up soon. Thanks for the work that you put in! OaklandJohn (talk) 16:56, 16 March 2026 (UTC)
- It's all the same issue. They changed the API limits, apparently. I'll make it a priority to get a fix in. Thanks for your patience, MusikAnimal (WMF) (talk) 06:05, 14 March 2026 (UTC)
- That's exactly what I also get. Every time, for each Category, the same error today Pschemmo (talk) 15:13, 13 March 2026 (UTC)
- @MusikAnimal (WMF):. Above you only mention Pagepiles with a lot of pages. But recently Massviews Analysis for Categories only returns an error message like "An unknown error occurred when querying Category:Brazilian female single skaters" for all categories, the category in the example just contains three articles. The Massviews Analysis worked fine earlier this week for categories with several hundred articles, but since this morning the only result I get is the mentioned error message. Larske (talk) 15:04, 13 March 2026 (UTC)
- From phab:T219857, it transpires that mw:Wikimedia APIs/Rate limits has just gone into effect. I am slightly heartened to see that Requests from Toolforge or WMCS using a User-Agent as the user identity should allow a very high rate of requests, so maybe it is a matter of making Pageviews et al. authenticated against a Wikimedia user account rather than anonymous as it is at the moment? I would certainly not be fussed at having to authenticate. Cheers, SunloungerFrog (talk) 16:20, 16 March 2026 (UTC)
- I've long wanted to move some pageview processing to server-side (for phab:T157830 specifically), but in most cases this does more harm than good because it will overwhelm the server. I think our best bet is to refine the clientside logic to not go too fast. After I've got that working, I may look into server-side solutions. MusikAnimal (WMF) (talk) 18:45, 16 March 2026 (UTC)
- @SunloungerFrog I'm not sure that means it needs authenticate against a Wikipedia user account, I read it as it just that it has to be on WMCS and comply with the Foundation:Policy:Wikimedia Foundation User-Agent Policy. -- Ahecht (TALK
PAGE) 19:34, 16 March 2026 (UTC)- For now, everything should be working properly. Using mass-querying tools like Massviews is significantly slower than it used to be, but it should in fact finish eventually. I've added retry logic in as well.
- No, it doesn't need to authenticate against a Wikimedia user account, but doing so will make it much faster. So that's the next step. I hope to have that implemented within a week or two. Until then, we'll have to settle with the slowness.
- Thanks for your patience, all! MusikAnimal (WMF) (talk) 00:22, 17 March 2026 (UTC)
- Thanks very much @MusikAnimal (WMF). Massiews is certainly slower (!) but that's much better than failing completely. I will just make a cup of tea while it chugs along. Cheers, SunloungerFrog (talk) 06:07, 17 March 2026 (UTC)
Topviews for Wikimedia Commons files
[edit]Hey, the Topviews for commons.wikimedia.org only show the top 26 pages.
Can you make it possible to see the Top 100/1000 files of Wikimedia Commons? Meant are for example svg/jpg/png files... WikiPate (talk) 15:07, 30 May 2026 (UTC)
- @WikiPate You can disable the "Show only mainspace pages" option towards the top-right. I can make this the default for Commons, I suppose, or even change the option to be "Show only File pages". — MusikAnimal talk 00:50, 31 May 2026 (UTC)
- Thank you for your reply. "Show only mainspace pages" can only be deactivated in monthly view. Could you add an option to deativate it in yearly view? WikiPate (talk) 01:15, 31 May 2026 (UTC)
- That unfortunately can't be done easily. The yearly datasets are not automatically generated, but done wholesale for all wikis at the end of each year. I think we need phab:T154381 to be addressed first. If you have a Phabricator account, feel free to "award a token" or comment showing your support for that task to help the Data Engineering team prioritize it. Best, — MusikAnimal talk 05:01, 31 May 2026 (UTC)
- Thank you for your reply. "Show only mainspace pages" can only be deactivated in monthly view. Could you add an option to deativate it in yearly view? WikiPate (talk) 01:15, 31 May 2026 (UTC)
Wikimedia page views
[edit]Dear Movement Communications Team,
Thank you for your response and clarification.
I would appreciate it if you could kindly clarify which entity is responsible for managing the pageviews tool, since it is not directly operated by the Wikimedia Foundation.
Additionally, I would be grateful if you could provide the appropriate point of contact or guidance on how to get in touch with the team responsible for this tool, as I have some specific inquiries regarding its usage and data.
Thank you in advance for your support.
Best regards, ~2026-33494-56 (talk) 06:37, 7 June 2026 (UTC)
- Per the documentation, I am the maintainer. You can ask your questions here, or email me. — MusikAnimal talk 19:20, 7 June 2026 (UTC)
- please, can you provide personal email? ~2026-33494-56 (talk) 10:52, 9 June 2026 (UTC)
- There's no way to do that on-wiki without signing up for a load of spam :-P However you may find my contact details by viewing my developer account. — MusikAnimal talk 17:09, 9 June 2026 (UTC)
- please, can you provide personal email? ~2026-33494-56 (talk) 10:52, 9 June 2026 (UTC)
Wiki.phtml
[edit]When looking at the results of the most viewed pages yesterday (11 June 2026) on Arabic Wikipedia, result number 29 appears with the title "wiki.phtml" with visits of 2,930, and when clicking on the link we find that the page has never existed on Arabic Wikipedia, in addition to the question marks that appear within the columns of edits and editors. Is there an explanation? --Alaa :)..! 16:21, 12 June 2026 (UTC)
- Same on nlwiki, it has more than 200k views without ever having a page with that name. ItsNyoty (talk) 18:14, 16 June 2026 (UTC)
- The first thing to understand is that pageviews are recorded for requests to any page, even if it doesn't exist. That said, this is clearly a pageviews anomaly (what I call a false positive), and it is effecting a lot of projects. I found phab:T375348 that was filed ~2 years ago for the same issue on cswiki, so I guess this has been going on for a while.
- Given that, I've added this title to the global disallowlist in Topviews, so it no longer will appear there. I can only fix it in Topviews, however. The Data Engineering team would be the ones who can do something about removing it from the actual datasets that Topviews pulls from.
- As for the why: I have no idea, hehe! Without looking at the underlying data, my guess is there is some badly written software somewhere out there that pings that page as if it were an endpoint, and the traffic is making it seem like it's coming from the users of that software, thus bypassing the Pageviews API automated bot filtering.
- Best, — MusikAnimal talk 18:34, 16 June 2026 (UTC)
page viewing issues and flaws
[edit]When opening the page views, sometimes the last day doesn’t show up if you set a short time period, usually 10-30 days, and it starts showing up if you set it to 90 days. Also, regarding redirects, some page redirects just don’t show up because of constant loading. And if you click 'include redirects' in the page views, the views stay the same. I’m using Microsoft Edge and Windows 11. Ewireijgf (talk) 12:57, 13 June 2026 (UTC)
- The "include redirects" feature might be broken, following the API limitations recently imposed. I can simply remove the option for now until I get a fix in. I would say to use Redirect Views instead, but it appears that is also broken :(
- I'm working on a rewrite that moves the pageviews queries to the backend so that it can get around the new API limitations. I hope to have the main Pageviews Analysis tool up and running within a month or so. The rest of the tools will take some time to fix, as I'm only able to work on this in my free time.
- Apologies for the disruption, — MusikAnimal talk 18:38, 16 June 2026 (UTC)
- Many thanks for the update. Hemiauchenia (talk) 19:49, 17 June 2026 (UTC)