PHP logging

EventLogging::logEvent( 'GenderSurvey', 5607845, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"GenderSurvey": 5607845
			}
		}
	}
}

JavaScript logging

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

Schema:GenderSurvey

From Meta, a Wikimedia project coordination wiki
Revision 5607845
Jump to navigation Jump to search
description"Logs a micro-survey delivered to users taking a guided tour (Extension:GuidedTour)"
properties
userId
type"integer"
requiredtrue
description"User ID"
buttonType
description"Identifies the option selected by the user"
type"string"
enum
"male"
"female"
"opt-out"