Jump to content

Extension talk:PageViewInfo/Archive 2

Summary by Elominius

I just visited the page of the dependency Extension:Graph, and it mentions it had a security issue. This explains it. Best of luck.

Elominius (talkcontribs)

Not that it is a big deal, however, the thirty-day view counter has not been clickable for few weeks. At first, it appeared like a temporary problem, but since it has not returned so far, I assume the page view graph has been removed.

Earlier this year, it was actually added to the mobile web.

Question !! PageViewInfo extension.json endpoint

5
Kokoxg2 (talkcontribs)

Hi ! I'm a person who runs a private wiki. i have a question for PageViewInfo Extension. When I checked the PageView Info source, it seems that page access history is saved through caching. BUT, The number of visits does not increase even if you visit the page several times. so, I tried to find out the cause of the problem. Looking at it so far, it seems that the endpoint attribute in extension.json is set to the default value (https-:-//-wikimedia.org-/-api-/-rest_v1). How should I change the endpoint attribute to cache page visit information in My Media Wiki? OR should I modify the reat.php request path in coreRoutes.json?


Thank you !

Sokote zaman (talkcontribs)

I've been looking for this before, and the result is this: this plugin only works for MediaWiki and other MediaWiki sister projects.

Kokoxg2 (talkcontribs)

I added a hyphen in the middle because of link spam prevention.

Kokoxg2 (talkcontribs)
Tgr (WMF) (talkcontribs)

PageViewInfo doesn't really support non-Wikimedia wikis. In theory you can write your own API binding for it, but it isn't simple (and you need an API in the first place - the extension doesn't gather statistics, just displays them).

Maybe you are looking for something like Extension:HitCounters.

Reply to "Question !! PageViewInfo extension.json endpoint"

Simply get the page views of the current page

3
Summary by Sophivorus
Sophivorus (talkcontribs)

Say I wanted to get the total number of page views during last month (or whatever period) for the current page. For example for displaying the number in the infobox of said page. Is it possible to do this in Wikimedia wikis?

Tgr (WMF) (talkcontribs)

The prop=pageviews API (or just visiting the "Page information" link in the sidebar) will give you the number of pageviews for the last 30 days but it's not accessible from wikitext (short of doing unwise hacks via the Graph extension).

Sophivorus (talkcontribs)

My wiki show Pageviewinfor Value 0

3
171.98.83.249 (talkcontribs)

I installed Pageviewinfo but my wiki show only 0 Value .

How do i check my mistake install or seting


thank you

Sokote zaman (talkcontribs)

I have this problem too please follow up thank you

Tgr (WMF) (talkcontribs)

This is an extension written for Wikimedia wikis. It is written in a modular way, so handling of other pageview data sources could be added, but hasn't been done so far.

Reply to "My wiki show Pageviewinfor Value 0"

reporting total number and multiple pages

6
Evolution and evolvability (talkcontribs)
Tgr (WMF) (talkcontribs)

The main point of this extension is to expose pageview numbers in a standard way in MediaWiki (via the API and as a PHP service) so other extensions / tools can build on it (and don't have to know where the pageview data comes from). Complicated UIs are probably better built as tools or gadgets IMO.

Evolution and evolvability (talkcontribs)

Thanks, that makes sense. If there are existing gadgets that might do this, let me know. Otherwise I'll ask over at the pageviews API

Tgr (WMF) (talkcontribs)

arwiki uses Extension:Graph (via a talk page template) to display page view stats. Not sure how the coming partial decommissioning of Graph will affect that though.

Evolution and evolvability (talkcontribs)

Do you know of any other extensions that might be able to replicate the same function? It would be great to be able to display the information in a similar style to the dimensions and altmetrics badges.

Tgr (WMF) (talkcontribs)

On second thought, exposing pageviews via Scribunto's Lua API seems like a reasonable thing to do for PageViewInfo (and then the UI-building part could be done in a template).

I'm not aware of other extensions of a similar functionality. Of course you can do pretty much anything with gadgets.

Reply to "reporting total number and multiple pages"
There are no older topics