PHP logging

EventLogging::logEvent( 'GuidedTourInternalLinkActivation', 8690553, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"GuidedTourInternalLinkActivation": 8690553
			}
		}
	}
}

JavaScript logging

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

Schema:GuidedTourInternalLinkActivation

From Meta, a Wikimedia project coordination wiki
Revision 8690553
Jump to navigation Jump to search
description"Recorded when a user activates an internal (same-wiki wiki link and interwiki link) link within a guider -- both via anchors that appear in the body of the guider and via buttons that link to internal pages."
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
label
type"string"
description"The displayed text of the link"
requiredtrue
pageName
type"string"
description"Includes full page name. This could be namespace plus a wiki prefix. E.g. [[mw:Extensions:GuidedTour]] --> "mw:Extensions:GuidedTour""
requiredtrue