Jump to content

Schema:VirtualPageView

PHP logging

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

extension.json setup for JavaScript logging

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

JavaScript logging

mw.track( 'event.VirtualPageView', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 21429806
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
access_method
type"string"
description"The type of client where the virtual pageview has taken place."
enum
"desktop"
"mobile web"
"mobile app"
requiredfalse
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