PHP logging

EventLogging::logEvent( 'VirtualPageView', 17742133, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"VirtualPageView": 17742133
			}
		}
	}
}

JavaScript logging

mw.eventLog.logEvent( 'VirtualPageView', { /* ... */ } );

Schema:VirtualPageView

From Meta, a Wikimedia project coordination wiki
Revision 17742133
Jump to: navigation, search
description"Measures views that can be mapped to a page view. e.g. a page preview hover"
properties
page_title
type"string"
description"The title of the target page being 'viewed'."
requiredtrue
page_namespace
type"integer"
description"The namespace of the target page being 'viewed'."
requiredtrue
page_id
type"integer"
description"The id of the target page being 'viewed'."
requiredtrue
source_title
type"string"
description"The title of the referring page."
requiredtrue
source_namespace
type"integer"
description"The namespace of the referring page."
requiredtrue
source_page_id
type"integer"
description"The id of the referring page."
requiredtrue
source_url
type"string"
description"The url where the view came from."
requiredfalse