PHP logging

EventLogging::logEvent( 'MobileWebUIClickTracking', 10742159, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWebUIClickTracking": 10742159
			}
		}
	}
}

JavaScript logging

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

Schema:MobileWebUIClickTracking

From Meta, a Wikimedia project coordination wiki
Revision 10742159
Jump to navigation Jump to search
description"Logs certain clicks on Wikimedia mobile sites"
properties
userEditCount
type"integer"
requiredfalse
description"The edit count of the user using the watchlist."
name
type"string"
description"Uniquely describes the thing that was clicked."
enum
"hamburger"
"search"
"notifications"
"lastmodified-profile"
"lastmodified-history"
"page-toc-toggle"
"page-toc-link"
"languages"
"reference"
"nearby-button"
"category-button"
"fontchanger-menu"
"fontchanger-font-change"
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."
mobileMode
type"string"
requiredtrue
enum
"stable"
"beta"
"alpha"
description"Whether the user is seeing the regular non-beta, beta, or alpha version of the mobile site."