PHP logging

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

extension.json setup for JavaScript logging

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

JavaScript logging

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

Schema:VirtualPageView

From Meta, a Wikimedia project coordination wiki
Revision 18131147
Jump to navigation Jump to search
description"Measures views of content associated with a specific wiki page, e.g. a page preview being seen (shown for at least 1 second)."
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