Jump to content

Schema:MediaViewer

PHP logging

EventLogging::logEvent( 'MediaViewer', 11055584, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MediaViewer": 11055584
			}
		}
	}
}

JavaScript logging

mw.track( 'event.MediaViewer', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 11055584
description"Logs client-side activity related to how users interact with Media Viewer"
properties
action
type"string"
requiredtrue
description"Client-side action"
samplingFactor
type"integer"
requiredtrue
description"Sampling factor"
variant
type"string"
requiredtrue
description"Media Viewer variant"