Jump to content

Schema:EditorJourney

PHP logging

EventLogging::logEvent( 'EditorJourney', 18910134, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"EditorJourney": 18910134
			}
		}
	}
}

JavaScript logging

mw.track( 'event.EditorJourney', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 18910134
description"Log server-side page view information. Used for the Growth team's Understanding First Day project (https://www.mediawiki.org/wiki/Growth/Understanding_first_day)."
properties
title
type"string"
requiredfalse
description"The text form of the title (spaces not underscores) associated with the event, e.g. 'Main Page'. Obfuscated for sensitive namespaces."
action
type"string"
requiredfalse
description"Action associated with the event, e.g. 'edit'."
permission_errors
type"string"
requiredfalse
description"A comma-separated list of permission errors associated with the event. Presence of errors does not necessarily signify a failed request."
request_method
type"string"
requiredtrue
description"HTTP request method associated with the event."
is_mobile
type"boolean"
requiredtrue
description"If the event is associated with the mobile web frontend."
namespace
type"number"
requiredfalse
description"Namespace associated with the event."
http_response_code
type"number"
requiredtrue
description"HTTP response code associated with the event."
page_id
type"string"
requiredfalse
description"Page ID associated with the event. Obfuscated for sensitive namespaces."
path
type"string"
requiredfalse
description"The query path associated with the event. Obfuscated for sensitive namespaces."
query
type"string"
requiredfalse
description"The query string associated with the event. Obfuscated for sensitive namespaces, in addition, 'return', 'returnto', and 'search' are always obfuscated."
user_id
type"integer"
requiredtrue
description"User ID, needed for tracking across login sessions."