PHP logging

EventLogging::logEvent( 'MobileWikiAppiOSLoginAction', 18688079, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWikiAppiOSLoginAction": 18688079
			}
		}
	}
}

JavaScript logging

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

Schema:MobileWikiAppiOSLoginAction

From Meta, a Wikimedia project coordination wiki
Revision 18688079
Jump to navigation Jump to search
description"Measure users' login and account creating actions on iOS"
properties
category
requiredtrue
description"On which screen this action is triggered"
type"string"
enum
"feed"
"login_to_sync_popover"
"setting"
"login"
label
requiredfalse
description"On which element of that screen this action is triggered: - When category='setting', this is 'login'. - When category is other value, this is NULL."
type"string"
enum
"login"
action
requiredtrue
description"Identifies the context in which the event was created."
type"string"
enum
"login_start"
"logout"
"login_success"
"createaccount_start"
"createaccount_success"
measure_time
requiredfalse
description"Time spent in seconds from action start to action success in seconds: - When action='login_success', this is the interval between 'login_start' and 'login_success'. - When action='createaccount_success', this is the interval between 'createaccount_start' and 'createaccount_success'. - When action is other value, this is NULL."
type"integer"
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
primary_language
description"User's primary language."
type"string"
requiredtrue
is_anon
description"True if user has not logged in."
type"boolean"
requiredtrue
event_dt
description"Client-side ISO-8601-formatted date-time at which this event occurred."
type"string"
requiredtrue
session_id
description"A unique identifier randomly generated per session."
type"string"
requiredtrue