PHP logging

EventLogging::logEvent( 'MobileWikiAppEdit', 19631190, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWikiAppEdit": 19631190
			}
		}
	}
}

JavaScript logging

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

Schema:MobileWikiAppEdit

From Meta, a Wikimedia project coordination wiki
Revision 19631190
Jump to navigation Jump to search
description"Track users as they go through the editing workflow in the app."
properties
action
requiredtrue
description"Which action in the funnel this is representing."
type"string"
enum
"start"
"preview"
"saved"
"captchaShown"
"captchaFailure"
"abuseFilterWarning"
"abuseFilterError"
"editSummaryTap"
"abuseFilterWarningIgnore"
"abuseFilterWarningBack"
"saveAttempt"
"error"
"ready"
"onboarding"
"editSummaryShown"
session_token
description"Session token regenerated at every 'start' event but persisted throughout the funnel."
type"string"
requiredtrue
pageNS
description"Namespace of the page being edited."
type"string"
requiredfalse
revID
description"Revision number of the page if it was saved."
type"integer"
requiredfalse
errorText
description"Error message returned by edit if any. Must match action=error"
type"string"
requiredfalse
abuseFilterName
description"Abuse filter name that was hit, if any. Must match action=abuseFilter*"
type"string"
requiredfalse
editSummaryTapped
description"The canned edit summary button that was tapped."
type"string"
requiredfalse
wikidataDescriptionEdit
description"If this is a Wikidata description edit, whether a new description is being added or an existing description is being updated."
type"string"
requiredfalse
enum
"new"
"existing"
source
description"The source from which the edit interface was invoked."
type"string"
requiredfalse
anon
description"Whether the user is logged in or anonymous: false = logged in, true = anonymous."
type"boolean"
requiredtrue
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