PHP logging

EventLogging::logEvent( 'GeoFeatures', 12914994, $event );

extension.json setup for JavaScript logging

{
	"EventLoggingSchemas": {
		"GeoFeatures": 12914994
	}
}

JavaScript logging

mw.eventLog.logEvent( 'GeoFeatures', { /* ... */ } );

Schema:GeoFeatures

From Meta, a Wikimedia project coordination wiki
Revision 12914994
Jump to: navigation, search
description"Logs geo and maps feature usage"
properties
feature
type"string"
enum
"WikiMiniAtlas"
"WIWOSM"
"GeoHack"
"Wikivoyage"
requiredtrue
description"Feature used"
action
type"string"
enum
"view"
"open"
"close"
"interaction"
"discovery"
requiredtrue
description"Feature-dependent action taken by user: * view: user views this feature without explicit interaction to start * open: user opens this feature * close: end of feature usage * interaction: user interacts with this feature * discovery: user goes to another page thanks to this feature"
titleCoordinate
type"boolean"
requiredtrue
description"Whether feature use was caused by interacting with title (primary) or inline coordinates"
userToken
type"string"
requiredfalse
description"Unique token identifying user"