Metric decomposition and anomaly detection to explain changes in Wikipedia's readership
A KPI explorer on Wikipedia's public traffic metrics: anomaly detection flags unusual changes in human pageviews, and a metric tree splits each change by language, platform, readers and views per reader, separating real shifts in reading from changes in how bots are counted.
Background
A headline metric drops and the product team needs answers fast. Is the drop real or normal for the time of year? Is it a change in what users do, or a change in how the metric is counted? Which part of the product is responsible, and is it fewer users or the same users doing less?
Wikipedia faced exactly this in 2025. The Wikimedia Foundation reported human pageviews down roughly 8% on the same months a year earlier, after discovering that a surge of apparently human traffic, mostly from Brazil, was bots built to evade detection. Its traffic metrics are public, so the investigation can be done on the real data.
This explorer flags unusual changes in those metrics and breaks them down until the cause is narrow enough to act on.
Data
Wikimedia's public Analytics API: daily pageviews for twelve of the largest Wikipedias since 2016, split by platform (desktop, mobile web, mobile app) and by whether the traffic was human, automated or a search crawler; daily unique devices; monthly pageviews by country; and monthly editors and new accounts.
How it works
- Metric tree. Human pageviews split by language and platform, and into readers (unique devices) times views per reader.
- Anomaly detection. Each series' weekly and yearly patterns are removed first, so only genuine breaks are flagged.
- Measurement checks. Human, automated and crawler traffic side by side, with change-point detection, so traffic moving between categories is seen as a counting change rather than lost readers.
- Decomposition. A change is split into mix (traffic shifted toward a segment) and rate (a segment itself changed).
Evaluation
Simulated series with the same seasonal patterns and planted changes, including a fake reclassification of bot traffic, check that the explorer finds the right segment and date.
Demo
A monitoring dashboard on Wikipedia's real metrics: start from an alert, click it and drill down to the measurement change, language, platform and reader behaviour responsible, with each contribution shown. The first investigation is the 2025 decline.
Unique devices are Wikimedia's estimate, not a count of people, and country figures are published as ranges, so those parts of the breakdown are approximate.