mnzpk / WikiNav

https://wikinav.toolforge.org
GNU General Public License v3.0
7 stars 3 forks source link

Discrepency in incoming pageviews figures #11

Open Aliscans opened 9 months ago

Aliscans commented 9 months ago

If I look up New_York in WikiNav, it says:

19.9k incoming pageviews1

1 The actual number of incoming pageviews received by New York is 15.4k.

Based on the rest of the footnote, I expected the first figure not to be higher than the second one.

I haven't tried to run WikiNav locally, so I don't know if this is specific to that server.

martingerlach commented 9 months ago

Thanks for surfacing this.

I believe the reason for this are redirects:

Suggested fix: include the pageviews from all redirects when fetching the number of pageviews of an article per month fetchMonthlyViews https://github.com/mnzpk/WikiNav/blob/main/client/src/services/pageviews.js