Extension:ViewportMetrics

The goal of the ViewportMetrics extension is to log viewport-related client-side metrics. Currently, the only metrics are the width and height of the viewport.

What data is logged?
See the ViewportMetrics schema.

Requirements
The EventLogging extension is required for this extension to work.

Installing / Configuration
To enable, add this to your :

To install in a MediaWiki-Vagrant development environment, use the  role.

Usage
To record viewport dimensions (subject to sampling defined in the extension's configuration) for project "projectfoo":