Jump to content

Schema:QuickSurveyInitiation

PHP logging

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

extension.json setup for JavaScript logging

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

JavaScript logging

mw.track( 'event.QuickSurveyInitiation', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 20987760
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"