PHP logging

EventLogging::logEvent( 'MobileWebClickTracking', 5929948, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWebClickTracking": 5929948
			}
		}
	}
}

JavaScript logging

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

Schema:MobileWebClickTracking

From Meta, a Wikimedia project coordination wiki
Revision 5929948
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. See Discussion page for existing names."
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."