PHP logging

EventLogging::logEvent( 'QuickSurveyInitiation', 18397507, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"QuickSurveyInitiation": 18397507
			}
		}
	}
}

JavaScript logging

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

Schema:QuickSurveyInitiation

From Meta, a Wikimedia project coordination wiki
Revision 18397507
Jump to navigation Jump to search
description"Logs impression of QuickSurveys"
properties
beaconCapable
type"boolean"
description"Whether the browser supports sendBeacon. Sent with the `eligible` event."
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."
surveyCodeName
type"string"
requiredtrue
eventName
type"string"
enum
"eligible"
"impression"
description"`eligible` - whether the user is eligible to see the survey, `impression` - whether the user has seen half of the survey widget."
performanceNow
type"integer"
description"Value of performance.now() at the time of the event"