PHP logging
EventLogging::logEvent( 'MobileWikiAppEdit', 23442324, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"MobileWikiAppEdit": 23442324
}
}
}
}
JavaScript logging
mw.track( 'event.MobileWikiAppEdit', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Track users as they go through the editing workflow in the app." |
---|
properties | action | required | true |
---|
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" |
"loginAttempt" |
"loginSuccess" |
"loginFailure" |
"rollbackAttempt" |
"rollbackSuccess" |
"rollbackFailure" |
|
---|
|
---|
session_token | description | "Session token regenerated at every 'start' event but persisted throughout the funnel." |
---|
type | "string" |
---|
required | true |
---|
|
---|
pageNS | description | "Namespace of the page being edited." |
---|
type | "string" |
---|
required | false |
---|
|
---|
revID | description | "Revision number of the page if it was saved." |
---|
type | "integer" |
---|
required | false |
---|
|
---|
errorText | description | "Error message returned by edit if any. Must match action=error" |
---|
type | "string" |
---|
required | false |
---|
|
---|
abuseFilterName | description | "Abuse filter name that was hit, if any. Must match action=abuseFilter*" |
---|
type | "string" |
---|
required | false |
---|
|
---|
editSummaryTapped | description | "The canned edit summary button that was tapped." |
---|
type | "string" |
---|
required | false |
---|
|
---|
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" |
---|
required | false |
---|
enum | |
---|
|
---|
source | description | "The source from which the edit interface was invoked." |
---|
type | "string" |
---|
required | false |
---|
|
---|
anon | description | "Whether the user is logged in or anonymous: false = logged in, true = anonymous." |
---|
type | "boolean" |
---|
required | true |
---|
|
---|
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" |
---|
required | true |
---|
|
---|
client_dt | description | "Client-side ISO-8601-formatted date-time at which this event occurred." |
---|
type | "string" |
---|
required | true |
---|
|
---|
|
---|