EUREKA. This was it. PROBLEM SOLVED.

GLAMorgan is majorly affected by ad blockers. Specifically: most ad blockers will try to aggressively block URLs that contain "metrics" in the URL name. GLAMorgan is executed in Javascript from the user's browser, so it's subject to ad blocking because the Pageviews API call to Mediawiki is to "https://wikimedia.org/api/rest_v1/metrics/pageviews..."

Turn off ad blocking, or use a browser profile that doesn't use it, and you're good.

-Andrew


On Mon, Feb 13, 2023 at 12:55 PM Andrew Lih <andrew.lih@gmail.com> wrote:
Oh, thanks for that reminder - yes, it seems to work in Safari, but I'll test it in other browsers I can access. I've updated the meta-wiki page with a warning.

After some sleuthing, it may be because of ad blockers, as the Javascript console on Chrome reads "net::ERR_BLOCKED_BY_CLIENT"

Since each of the HTTP API requests are generated from within the user's browser and reads like this:
https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/incubator.wikipedia/all-access/user/...

I'm wondering if this is a case of ad block false positives because the URL has "metrics" in the name, which is a key thing these ad blockers aggressively filter. However, right now toolforge is having a bad hair day, so I cannot test this.

-Andrew


On Mon, Feb 13, 2023 at 10:54 AM Andy Mabbett <andy@pigsonthewing.org.uk> wrote:
On Mon, 13 Feb 2023 at 15:03, Andrew Lih <andrew.lih@gmail.com> wrote:
>
> Thanks all for the feedback and conversation.
>
> In the meantime, has anyone gotten GLAMorgan to report back any useful pageview data?
>
> Regardless of small, medium, or large categories, I keep getting:
> "Data for ... pages could not be loaded from the WMF pageview API (404 error)."

What browser are you using? As I noted earlier, GLAMORGAN works (for
me) in Edge, but not Firefox. It also reportedly works in Safari, but
not Chrome.

--
Andy Mabbett
@pigsonthewing
http://pigsonthewing.org.uk
_______________________________________________
Wren mailing list -- wren@lists.wikimedia.org
To unsubscribe send an email to wren-leave@lists.wikimedia.org


--
-Andrew Lih
Smithsonian Institution - Wikimedian at Large
Metropolitan Museum of Art - Wikimedia strategist
Previously: professor of journalism and communications, American University, Columbia University, University of Southern California
---
Email: andrew.lih@gmail.comandrew@andrewlih.com
WEB: https://muckrack.com/fuzheado
PROJECT: Wikipedia Space: http://en.wikipedia.org/wiki/WP:WPSPACE



--
-Andrew Lih
Smithsonian Institution - Wikimedian at Large
Metropolitan Museum of Art - Wikimedia strategist
Previously: professor of journalism and communications, American University, Columbia University, University of Southern California
---
Email: andrew.lih@gmail.comandrew@andrewlih.com
WEB: https://muckrack.com/fuzheado
PROJECT: Wikipedia Space: http://en.wikipedia.org/wiki/WP:WPSPACE