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
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 | |
---|
eventName | type | "string" |
---|
enum | |
---|
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" |
---|
|
---|
|
---|