PHP logging

EventLogging::logEvent( 'MobileWikiAppLogin', 18144592, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWikiAppLogin": 18144592
			}
		}
	}
}

JavaScript logging

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

Schema:MobileWikiAppLogin

From Meta, a Wikimedia project coordination wiki
Revision 18144592
Jump to navigation Jump to search
description"Track user actions when using the login screen."
properties
action
description"Which particular action triggered this event."
enum
"start"
"success"
"createAccountAttempt"
"createAccountFailure"
"createAccountSuccess"
"error"
type"string"
requiredtrue
source
description"How the user came to the screen."
enum
"edit"
"blocked"
"navigation"
"onboarding"
type"string"
requiredfalse
session_token
description"Session token generated when the login process starts. Identifies events across the funnel."
type"string"
requiredtrue
error_text
description"Error response from the login method, if any."
type"string"
requiredfalse
edit_session_token
description"If source=edit, the editSessionToken used for recording that particular edit funnel."
type"string"
requiredfalse
app_install_id
description"Randomly generated UUID that is unique to each app install, which can be used to cross-reference the same app install across different schemas."
type"string"
requiredtrue
client_dt
description"Client-side ISO-8601-formatted date-time at which this event occurred."
type"string"
requiredtrue