Talk:Pageviews Analysis

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search

Pageviews Analysis – DocumentationFeedback forumIssue

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:


Add dark theme[edit]

I can implement it Vitaly Zdanevich (talk) 15:46, 10 March 2021 (UTC)

@Vitaly Zdanevich Hello again! :) Patches are most welcome. See the source code at This app is a little easier to set up locally than XTools, if you wanted to try, but if not we can do the same we did with XTools where you just add the CSS. I suppose the best placement is in the _shared.scss file. We can do the same trick with the invert filter for the <canvas> elements. Thanks for contributing! MusikAnimal (WMF) (talk) 19:42, 19 March 2021 (UTC)
ok, thank you, I will finish XTools first according to all feedback, and after that I can use the same color values Vitaly Zdanevich (talk) 18:09, 20 March 2021 (UTC)

Topview rankings[edit]


I'd like to get a list of the top ~10k most viewed wikipedia pages of all time (or at least in a single year like 2020), but I don't need the number of page views and also exact ordering isn't too important. Is this currently possible to do without clicking the "show more" button 100x manually over the course of a couple hours?

Thanks, Norman —The preceding unsigned comment was added by Thenorm23 (talk)

@Thenorm23: The underlying API used by Topviews only provides the top 1,000 most viewed pages. Sorry :( You can download the full list from Topviews as CSV or JSON using the "Download" dropdown on the right side above the list of pages. Hope this helps, MusikAnimal (WMF) (talk) 19:47, 19 March 2021 (UTC)

Top pageviews per country[edit]

FYI new API endpoint for the top-1000 viewed pages per country (wikitech, phab). Would be great to see this surfaced on the pageviews tool! --Isaac (WMF) (talk) 13:38, 25 March 2021 (UTC)

Request CC-By copyright licensing[edit]

I am writing to request that this tool's copyright be CC-By 4.0 international. The main reason why I want this is because this tool produces content which is of interest to researchers, scholars, and academics, and so its images should be easily available for publication in venues for that. In the en:open access social movement the recommended copyright license from venues such as en:PLOS is CC-By. I would like screenshots from this tool to be compatible with publication in open access scholarly journals.

Right now the copyright situation is a bit unclear. At pageviews on github it says "screenshots of the charts in Pageviews Analysis may be used without attribution, but a link back to the application would be appreciated". This is less clear than a copyright license and requires explanation if a journal requests anyone to provide usage rationales for publishing images.

There is a Wikimedia screenshot template commons:Wikimedia screenshot which makes some assumptions that people will screenshot Wikipedia articles, and which may not apply to this tool. That template defaults to saying that the license must be CC-By-SA, which is a license mandated for all submitted Wikipedia text.

I can talk more about this if anything is unclear but in summary - can the license for output of this tool be CC-By? Blue Rasberry (talk) 22:04, 31 March 2021 (UTC)

@Bluerasberry I have clarified that the charts are also in the CC0 public domain. I'm not very fond of having a different license for just the charts, in addition to separate licenses for the data and the code. Honestly, I'm not even sure I have the liberty to re-license the charts as they are merely a barebones visualization of public domain data. Warm regards, MusikAnimal (WMF) (talk) 19:52, 1 April 2021 (UTC)
@MusikAnimal (WMF): On second thought maybe my request is my own misunderstanding and being misguided, and maybe like you say there should not be additional licenses. I appreciate the clarification because I was grabbing some screenshots for publication off-wiki and I had to provide license explanations, and I got confused. Your CC0 intent does answer the request for a license, but also, with the code having a license, the data being public domain, and the image being a functional non-creative visualization, I am not sure there is a copyright in the charts for anyone to claim. There might be one in the screenshot of the interface beyond the chart. Whatever the case, thank you, I will reflect on it some more and maybe talk about it at Commons:Commons:Village pump/Copyright. Blue Rasberry (talk) 14:51, 4 April 2021 (UTC)

How to Join Bifurcated Pageviews Dataset Post-Page Move (Article Rename)[edit]

  1. Background Scenario
  2. My Specs (Not relevant; courtesy listing)
    • Chrome 89.0.4389.105;
    • Android 11;
    • One UI 3.1;
    • Samsung Galaxy S20 Ultra 5G;
  3. Question(s)
    • Is the observed behavior for pulling pageviews data consistent with known expected behavior given the page was moved?
    • Therefore, the end user is directed to adjust settings to factor in Autocompletions including redirects or Always include redirects to obtain an aggragate dataset?
    • What is the likelihood of double-counting pageviews if relying on this recommended technique to address pageview anomolies when pages are moved (renamed)?
    • If in the Move function:
      • Article contents including categories are moved;
      • Edit history is also moved;
      • Talk page and its edit history are moved;
      • Wikidata is unlinked from the old article and re-linked to the new article;
      • Then it logically follows that pageviews datasets should also be unlinked/linked or merged or otherwise ported over to the new article page.
      • Unless, of course, there is some technological barrier, or resource costs make the automation of the move of pageviews prohibitively expensive or otherwise too complex and thus these options are not tenable.
I welcome constructive feedback and teachable insights in response to my query as I have absolutely no idea how WMF is setup, runs or what SOP is and am very eager to start learning. Please let me know if you have additional questions or require additional information. Thank you for your attention to my query. Kimdorris (talk) 07:55, 8 April 2021 (UTC)
@Kimdorris The Pageviews API goes by page title, not page ID, so pageviews are not copied when a page is moved (see phab:T159046). The recommendation is to use the "include redirects" option, or manually request each variant of the article. You probably want to always include redirects anyway, because if the reader got to the article from the redirect, the pageview is registered for the redirect and not the target article. Hope this helps, MusikAnimal (WMF) (talk) 22:51, 9 April 2021 (UTC)
MusikAnimal (WMF): Thank you for the reply. It does help me understand what happens in the background and further solidifies the importance of the need to eliminate double redirects after page moves. And thank you for pointing out the fact that the Pageviews API uses the page title rather than the page ID. This factor alone explains ALL THE THINGS inherent in the platform. TIL. Kimdorris (talk) 08:00, 10 April 2021 (UTC)