PHP logging

EventLogging::logEvent( 'GuidedTourGuiderHidden', 8690549, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"GuidedTourGuiderHidden": 8690549
			}
		}
	}
}

JavaScript logging

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

Schema:GuidedTourGuiderHidden

From Meta, a Wikimedia project coordination wiki
Revision 8690549
Jump to navigation Jump to search
description"Recorded when a user hides a guider, but not when they exit a tour. NOTE: There are two kinds of user-initiated hide actions, those that only hide the guider and those that end the tour, forgetting the user's state (for exits, see Schema:GuidedTourExited). There will also be hide actions that are not directly triggered by a button (e.g a tour can decide to end when a user completes a non-null edit). This event only fires when the user decides to hide a guider. This also does not include the automatic "Okay" button that hides the guider."
properties
userId
type"integer"
description"User ID of the user interacting with the tour (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