Jump to content

Schema:GuidedTourButtonClick

PHP logging

EventLogging::logEvent( 'GuidedTourButtonClick', 13869649, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"GuidedTourButtonClick": 13869649
			}
		}
	}
}

JavaScript logging

mw.track( 'event.GuidedTourButtonClick', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 13869649
description"Recorded when a user clicks a button"
properties
userId
type"integer"
description"User ID of the user performing the move (zero for anons)"
requiredtrue
sessionToken
type"string"
description"A randomly generated token that will identify a user's browser throughout a session of MediaWiki activities. Note that tokens do not persist between sessions. This field is NULL if the token cannot be generated or persisted between page loads (e.g. cookies are turned off). Tokens are generated with mw.user.sessionId()."
requiredfalse
tour
type"string"
description"The name of the tour. Used as a tour identifier."
requiredtrue
step
type"string"
description"The name of the current step that the guider represents"
requiredtrue
labelKey
type"string"
description"The i18n key for the button label, if used"
requiredfalse
label
type"string"
description"The label of the button; this is still set to the displayed text even if an i18n key is used"
requiredtrue
action
type"string"
description"Identifies the button's action. Note that internalLink and externalLink button clicks will have a corresponding GuidedTourInternalLinkActivation and GuidedTourExternalLinkActivation."
enum
"next"
"back"
"okay"
"end"
"internalLink"
"externalLink"
"custom"
requiredtrue