PHP logging

EventLogging::logEvent( 'QuickSurveysResponses', 18397510, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"QuickSurveysResponses": 18397510
			}
		}
	}
}

JavaScript logging

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

Schema:QuickSurveysResponses

From Meta, a Wikimedia project coordination wiki
Revision 18397510
Jump to navigation Jump to search
description"Logs respones to QuickSurveys"
properties
namespaceId
type"integer"
requiredtrue
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
type"string"
requiredtrue
surveyResponseValue
type"string"
requiredtrue
description"The answer the user selected, using the i18n key and not the localized value."
platform
type"string"
requiredtrue
enum
"web"
"iosapp"
"androidapp"
description"The platform that the user is submitting the response from."
skin
type"string"
requiredfalse
description"Skin name, i.e. `minerva`, `minervabeta`, `vector`, etc."
isTablet
type"boolean"
requiredtrue
description"Whether the user's device is tablet size or bigger."
userLanguage
type"string"
requiredtrue
description"The language of the survey."
isLoggedIn
type"boolean"
requiredtrue
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"
requiredtrue
description"This is available from the GeoIP cookie's first field in its colon separated list. 'Unknown' if unknown."