PHP logging

EventLogging::logEvent( 'MobileWikiAppSessions', 18948969, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWikiAppSessions": 18948969
			}
		}
	}
}

JavaScript logging

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

Schema:MobileWikiAppSessions

From Meta, a Wikimedia project coordination wiki
Revision 18948969
Jump to navigation Jump to search
description"Track user behavior during a session of using the app."
properties
length
requiredtrue
description"The length of this session, in seconds."
type"integer"
totalPages
description"Number of total pages viewed during this session."
type"integer"
requiredtrue
fromSearch
description"Number of pages viewed that came from the Search bar."
type"integer"
requiredtrue
fromRandom
description"Number of pages viewed that came from Random."
type"integer"
requiredtrue
fromLanglink
description"Number of pages viewed that came from the Other Languages selection."
type"integer"
requiredtrue
fromInternal
description"Number of pages viewed that came from tapping regular internal links on a page."
type"integer"
requiredtrue
fromExternal
description"Number of pages viewed that came from external links (e.g. from the Browser app)."
type"integer"
requiredtrue
fromHistory
description"Number of pages viewed that came from History."
type"integer"
requiredtrue
fromReadingList
description"Number of pages viewed that came from Reading Lists."
type"integer"
requiredtrue
fromNearby
description"Number of pages viewed that came from Nearby."
type"integer"
requiredtrue
fromDisambig
description"Number of pages viewed that came from disambiguation links."
type"integer"
requiredtrue
fromBack
description"Number of pages viewed that resulted from the Back button being pressed."
type"integer"
requiredtrue
fromSuggestedEdits
description"Number of pages viewed that resulted from the Suggested Edits feature."
type"integer"
requiredtrue
noDescription
description"Number of pages viewed that had no Wikidata description displayed"
type"integer"
requiredtrue
leadLatency
description"Average latency, in milliseconds, of fetching the lead section from the network."
type"integer"
requiredtrue
restLatency
description"Average latency, in milliseconds, of fetching the rest of the sections (non-lead) from the network."
type"integer"
requiredtrue
apiMode
description"Which API mode was being used during this session: 0 = MediaWiki API, 1 = RESTBase."
type"integer"
requiredtrue
languages
description"JSON array of languages, in order. For example: if user's language settings are 1. German and 2. English, then this is ["de","en"]"
type"string"
requiredtrue
session_token
description"A randomly generated identifier for cross-schema session analytics."
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