PHP logging

EventLogging::logEvent( 'MobileWebUIActionsTracking', 19230467, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWebUIActionsTracking": 19230467
			}
		}
	}
}

JavaScript logging

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

Schema:MobileWebUIActionsTracking

From Meta, a Wikimedia project coordination wiki
Revision 19230467
Jump to navigation Jump to search
description"Logs when certain UI elements get visible and when user interacts with those on Wikimedia Minerva skin"
properties
action
type"string"
description"Type of interaction. `Shown` is special interaction, not triggered by user. It can be sent to mark that given dynamic UI element got presented to the user"
enum
"show"
"click"
requiredtrue
name
type"string"
description"Uniquely describes the thing that was interacted. Clicks on element with `data-event-name` attribute will be automatically tracked, using `data-event-name` as `name`."
requiredtrue
destination
type"string"
description"URL that the link points to. If undefined it was not a link."
requiredfalse
modes
type"string"
requiredtrue
description"Comma separated list of modes. Whether the user is seeing the stable (non-beta), amc, beta version of the mobile site or the desktop version of Minerva. Note: Desktop mode includes the AMC mode. When `desktop` mode is selected, do not send the `amc` mode."
token
type"string"
requiredtrue
description"Session token that survives across pages (mw.user.sessionId()), but not when browser restarts."
isAnon
type"boolean"
description"Is the user viewing anonymously?"
requiredtrue
editCountBucket
type"string"
description"Number of edits by user. Set only if user is logged in."
enum
"0 edits"
"1-4 edits"
"5-99 edits"
"100-999 edits"
"1000+ edits"
requiredfalse