PHP logging
EventLogging::logEvent( 'QuickSurveysResponses', 20987761, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"QuickSurveysResponses": 20987761
}
}
}
}
JavaScript logging
mw.track( 'event.QuickSurveysResponses', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Logs respones to QuickSurveys" |
---|
properties | namespaceId | type | "integer" |
---|
required | true |
---|
description | "Namespace ID." |
---|
|
---|
surveySessionToken | type | "string" |
---|
description | "Session token that survives pages and in the rarest cases, tabs." |
---|
|
---|
pageviewToken | type | "string" |
---|
description | "Token unique to current page's JS execution context." |
---|
|
---|
pageId | type | "integer" |
---|
description | "ID of the page user was reading." |
---|
|
---|
pageTitle | type | "string" |
---|
description | "Title of the page the user was reading." |
---|
|
---|
surveyCodeName | |
---|
surveyResponseValue | type | "string" |
---|
required | true |
---|
description | "The answer the user selected, using the i18n key and not the localized value." |
---|
|
---|
platform | type | "string" |
---|
required | true |
---|
enum | "web" |
"iosapp" |
"androidapp" |
|
---|
description | "The platform that the user is submitting the response from." |
---|
|
---|
skin | type | "string" |
---|
required | false |
---|
description | "Skin name, i.e. `minerva`, `minervabeta`, `vector`, etc." |
---|
|
---|
isTablet | type | "boolean" |
---|
required | true |
---|
description | "Whether the user's device is tablet size or bigger." |
---|
|
---|
userLanguage | type | "string" |
---|
required | true |
---|
description | "The language of the survey." |
---|
|
---|
isLoggedIn | type | "boolean" |
---|
required | true |
---|
description | "Whether the user is logged in." |
---|
|
---|
editCountBucket | type | "string" |
---|
enum | "0 edits" |
"1-4 edits" |
"5-99 edits" |
"100-999 edits" |
"1000+ edits" |
|
---|
|
---|
countryCode | type | "string" |
---|
required | true |
---|
description | "This is available from the GeoIP cookie's first field in its colon separated list. 'Unknown' if unknown." |
---|
|
---|
|
---|