PHP logging

EventLogging::logEvent( 'CitationUsagePageLoad', 18502712, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"CitationUsagePageLoad": 18502712
			}
		}
	}
}

JavaScript logging

mw.track( 'event.CitationUsagePageLoad', { /* ... */ } );

Schema:CitationUsagePageLoad

From Meta, a Wikimedia project coordination wiki
Revision 18502712
Jump to navigation Jump to search
description"Characterizing Wikipedia Citation Usage (only pageLoad) — https://meta.wikimedia.org/wiki/Research:Characterizing_Wikipedia_Citation_Usage"
properties
dom_interactive_time
type"integer"
description"Total length of time since the UNIX epoch (in milliseconds) when `document.readyState` changes to `interactive`, i.e. when the parser finished its work on the main document. Not all browsers support the `PerformanceTiming.domInteractive` API."
requiredtrue
event_offset_time
type"integer"
description"The number of milliseconds since `domInteractiveTime` spent on this page when the action occurred."
requiredtrue
action
type"string"
description"`pageLoad` — action fired upon page load."
enum
"pageLoad"
requiredtrue
revision_id
type"integer"
description"Revision ID of the page where the event occurred in."
requiredtrue
page_id
type"integer"
description"The ID of the page where the event occurred in."
requiredtrue
namespace_id
type"integer"
description"The ID of the page's namespace where the event occurred in."
requiredtrue
page_token
type"string"
description"One-time token per page load."
requiredtrue
session_token
type"string"
description"Session token that survives across pages (`mw.user.sessionId()`), but not browser restarts."
requiredtrue
referrer
type"string"
description"The URI of the page that linked to this page as reported by `document.referrer`."
requiredtrue
skin
type"string"
description"Skin being used by reader."
requiredtrue
mode
type"string"
description"Whether the user is in the desktop mode or mobile mode."
enum
"desktop"
"mobile"
requiredtrue