Jump to content

Schema:GuidedTour

PHP logging

EventLogging::logEvent( 'GuidedTour', 5996912, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"GuidedTour": 5996912
			}
		}
	}
}

JavaScript logging

mw.track( 'event.GuidedTour', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 5996912
description"Logs client-side events by users taking a Extension:GuidedTour"
properties
userId
type"integer"
requiredtrue
description"User ID"
tourName
description"Tour name, such as 'gettingstarted'"
requiredtrue
type"string"
action
type"string"
requiredtrue
enum
"impression"
"hide"
"button-click"
"link-click"
"complete"
description"List of possible actions that can be taken on any given step: * impression - guider was shown * hide - guider was dismissed/hidden before completing the tour * button-click - a button within the guider was clicked * link-click - a link within the guider was clicked * complete - user had an impression on the last step of the tour (the last in the tour definition's step list)"
step
description"Identifies the step currently shown to the user"
requiredtrue
type"integer"