PHP logging

EventLogging::logEvent( 'Kartographer', 16132745, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"Kartographer": 16132745
			}
		}
	}
}

JavaScript logging

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

Schema:Kartographer

From Meta, a Wikimedia project coordination wiki
Revision 16132745
Jump to navigation Jump to search
description"Logs Kartographer usage"
properties
feature
type"string"
enum
"mapframe"
"maplink"
requiredtrue
description"Feature used"
action
type"string"
enum
"view"
"activate"
"open"
"hashopen"
"close"
"drag"
"zoom"
"marker-click"
"shape-click"
"map-click"
"discovery"
"sidebar-show"
"sidebar-hide"
"sidebar-click"
"sidebar-type"
"wv-warn"
"wv-warn-agree"
"wv-warn-reject"
"wv-select-wmflayer"
"wv-select-exlayer"
"wv-show-layer"
"wv-hide-layer"
"wv-show-exlayer"
"wv-hide-exlayer"
"wv-show-nearby"
"wv-hide-nearby"
requiredtrue
description"Feature-dependent action taken by user: * view: user views this feature without explicit interaction to start * activate: for mapframe's static snapshot, user clicked to interact with the map * open: user opens this feature * hashopen: user was lead to a URL with map hash, resulting in a fullscreen map being displayed * close: end of feature usage * drag: user dragged the map around * zoom: user changed zoom * marker-click: user clicked/tapped on a marker on map * shape-click: user clicked/tapped on a geoshape overlay * map-click: user clicked/tapped on map * discovery: user goes to another page thanks to this feature * sidebar-show - show sidebar in full screen * sidebar-hide - hide sidebar in full screen * sidebar-click - click on one of the ext service in the infobox * sidebar-type - switch shown infobox types to a different one * wv-warn - external data viewing warning is shown * wv-warn-agree - external data viewing was accepted * wv-warn-reject - external data viewing was rejected * wv-select-wmflayer - switched to wmflayer * wv-select-exlayer - switched to non-wmf layer (after warning) * wv-show-layer - a wmf layer was enabled * wv-hide-layer - a wmf layer was hidden * wv-show-exlayer - an external layer was enabled * wv-hide-exlayer - an external layer was hidden * wv-show-nearby - nearby markers button was pushed (enabled) * wv-hide-nearby - nearby markers button was pushed (disabled)"
extra
type"string"
requiredfalse
description"Additional value for the action, such as type+name of the infobox external service, or the zoom level"
firstInteraction
type"boolean"
requiredtrue
description"Whether the event is the first interaction of the user with the map"
fullscreen
type"boolean"
requiredtrue
description"Whether this event relates to a fullscreen map"
mobile
type"boolean"
requiredtrue
description"Whether the event comes from the mobile site"
duration
type"integer"
requiredfalse
description"Time in milliseconds elapsed since the beginning of the interaction, if applicable"
sampling
type"integer"
requiredfalse
description"Sampling rate in effect for this event"
userToken
type"string"
requiredfalse
description"Unique token identifying user"