PHP logging

EventLogging::logEvent( 'MobileWebMainMenuClickTracking', 18984528, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWebMainMenuClickTracking": 18984528
			}
		}
	}
}

JavaScript logging

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

Schema:MobileWebMainMenuClickTracking

From Meta, a Wikimedia project coordination wiki
Revision 18984528
Jump to navigation Jump to search
description"Logs certain clicks on Wikimedia Minerva skin"
properties
userEditCount
type"integer"
requiredfalse
description"The edit count of the user interacting with the main menu"
name
type"string"
description"Uniquely describes the thing that was clicked."
destination
type"string"
description"URL that the link points to. If undefined it was not a link."
username
type"string"
requiredfalse
description"Username for logged in user."
amc
type"boolean"
requiredtrue
description"Whether or not the user has advanced contributions mode enabled (true) or disabled (false)"
mode
type"string"
requiredtrue
enum
"stable"
"beta"
"desktop"
description"Whether the user is seeing the stable (non-beta), beta version of the mobile site or the desktop version of Minerva."