PHP logging

EventLogging::logEvent( 'MobileWikiAppiOSSessions', 18121261, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWikiAppiOSSessions": 18121261
			}
		}
	}
}

JavaScript logging

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

Schema:MobileWikiAppiOSSessions

From Meta, a Wikimedia project coordination wiki
Revision 18121261
Jump to navigation Jump to search
description"Track the start and end of a session of using the app."
properties
category
requiredtrue
description"On which screen this session is started/ended. Currently we don't have a reliable way to identify the screen when users start a session."
type"string"
enum
"unknown"
label
requiredfalse
description"On which element of that screen this session is started/ended."
type"string"
action
requiredtrue
description"Identifies the context in which the event was created."
type"string"
enum
"session_start"
"session_end"
measure_time
requiredfalse
description"When action='session_end', this is the interval in seconds between session_start and session_end. When action='session_start', 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