Jump to content

Schema:Print

PHP logging

EventLogging::logEvent( 'Print', 17630514, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"Print": 17630514
			}
		}
	}
}

JavaScript logging

mw.track( 'event.Print', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 17630514
description"Measures printing of pages via the browser print dialog. Events only logged for UAs that support the Beacon API <http://caniuse.com/#feat=beacon>."
properties
pageTitle
type"string"
description"The title of the page."
requiredtrue
namespaceId
type"integer"
requiredtrue
description"Namespace ID of the page."
isAnon
type"boolean"
description"Is the user viewing anonymously?"
requiredtrue
skin
type"string"
enum
"vector"
"minerva"
"other"
description"Skin being used by reader. When used skin is not minerva nor vector 'other' will be stored"
requiredtrue
action
type"string"
enum
"shownPrintButton"
"clickPrintableVersion"
"onBeforePrint"
description"`clickPrintableVersion` happens when the user clicks on 'printable version'. `onBeforePrint` happens when the browser emits 'onbeforeprint'. `shownPrintButton` will be triggered when Minerva adds a print button to the display. In Vector this is always visible so is not fired."
requiredtrue
sessionToken
type"string"
description"Session token that survives across pages (mw.user.sessionId()), but not browser restarts."
requiredtrue