Analytics/Pageviews

From Wikitech

Summary

The Analytics and Research Teams at Wikimedia developed a new and more comprehensive definition and algorithm to count pageviews. "Pageviews" or "Current Pageviews" refers to a tally using the new algorithm. Many dashboards and reports continue to use the legacy definition of pageviews and those counts should be referred to as "Legacy Pageviews".

Legacy Pageviews Pageviews

(Current Pageviews)

Data Source sampled web-request logs un-sampled web-request logs
Cons
  • the data source is sampled
  • the definition is several years old
  • it included fundraising banner views
  • excludes the apps
Pros
  • the data source is un-sampled
  • better detection and exclusion of spiders
Examples Monthly Metrics Report Card WMF Quarterly Report
Specification Here Here
Uses

Eventually some dashboards will be deprecated

or migrated to use the current pageview definition.

Details

  • The Research team has developed a new definition of Pageviews: https://meta.wikimedia.org/wiki/Research:Page_view
  • The new definition is better because:
    • it is based on all the web-request logs (not a 1:1000 sampling of them);
    • it can detect and flag more spiders (which can be a significant fraction of total traffic on some wikis);
    • the legacy definition has not kept up with site updates. For example, the current definition excludes fundraising banners which are not technically a pageview.
  • The new definition will evolve over time as new ways of viewing content are developed (e.g. a mobile app using and APIs)
  • The new definition is generated on the analytics cluster using Hadoop and web request logs
  • Current pageview counts are being tallied starting May 1 2015
  • Where appropriate, we will slowly transition uses of legacy pageviews to use current pageviews or we will point out where legacy pageviews are used.
  • The previous definition is documented here: https://git.wikimedia.org/blob/analytics%2Fmetrics/HEAD/pageviews%2Fwebstatscollector%2Fpageview_definition.png
  • The previous definition relied on a tool named webstatscollector: Analytics/Webstatscollector

Comparing current and legacy pageviews

Legacy pageview counts can/are larger than current pageview counts because of traffic from spiders and banner impressions. The current definition makes a better effort at counting traffic from real persons and excluding automata. Please take this into account when trying to plot year over year changes in traffic. For example, when looking at http://stats.wikimedia.org/EN/TablesPageViewsMonthlyCombined.htm there is a discontinuity in traffic on May 2015 because that is when the current pageview definition is used to report traffic.