PHP logging

EventLogging::logEvent( 'MobileWikiAppAppearanceSettings', 18113727, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWikiAppAppearanceSettings": 18113727
			}
		}
	}
}

JavaScript logging

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

Schema:MobileWikiAppAppearanceSettings

From Meta, a Wikimedia project coordination wiki
Revision 18113727
Jump to navigation Jump to search
description"Measure user interactions with theme and appearance options. Font Sizes are tracked as relative integer values that are offsets from 0 (i.e. negative values are smaller sizes, and positive values are larger sizes), and appropriate values for 'theme' are 'light' and 'dark'."
properties
action
requiredtrue
description"Which action in the funnel this is representing."
type"string"
enum
"fontSizeChange"
"themeChange"
current_value
description"The current value of the appearance setting being changed."
type"string"
requiredtrue
new_value
description"The new value of the apparance setting that's been changed."
type"string"
requiredtrue
app_install_id
description"Randomly generated UUID that is unique to each app install, which can be used to cross-reference the same app install across different schemas."
type"string"
requiredtrue
client_dt
description"Client-side ISO-8601-formatted date-time at which this event occurred."
type"string"
requiredtrue