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
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" |
|
---|
required | false |
---|
|
---|
page_title | type | "string" |
---|
description | "The title of the target page being 'viewed'." |
---|
required | true |
---|
|
---|
page_namespace | type | "integer" |
---|
description | "The namespace of the target page being 'viewed'." |
---|
required | true |
---|
|
---|
page_id | type | "integer" |
---|
description | "The id of the target page being 'viewed'." |
---|
required | true |
---|
|
---|
source_title | type | "string" |
---|
description | "The title of the referring page." |
---|
required | true |
---|
|
---|
source_namespace | type | "integer" |
---|
description | "The namespace of the referring page." |
---|
required | true |
---|
|
---|
source_page_id | type | "integer" |
---|
description | "The id of the referring page." |
---|
required | true |
---|
|
---|
source_url | type | "string" |
---|
description | "The url where the view came from." |
---|
required | false |
---|
|
---|
|
---|