Jump to content

Schema:MobileWikiAppLangSelect

PHP logging

EventLogging::logEvent( 'MobileWikiAppLangSelect', 17836913, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWikiAppLangSelect": 17836913
			}
		}
	}
}

JavaScript logging

mw.track( 'event.MobileWikiAppLangSelect', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 17836913
description"Measure the usage of the language-switch feature in the app."
properties
action
description"Which particular action triggered this event: -start - the language selection dialog is shown. -select - the user successfully selected a language. -cancel - the user backed out of the language selection dialog."
enum
"start"
"select"
"cancel"
type"string"
requiredtrue
source
description"The source from which the language selection dialog was initiated: 0 = 'More' menu, 1 = Search bar."
type"integer"
requiredtrue
timeSpent
description"Amount of time, in seconds, that the user spent within the language selection dialog. This value is only present for the 'select' or 'cancel' actions."
type"integer"
requiredfalse
oldLang
description"Language to which the app was set before the change."
type"string"
requiredfalse
newLang
description"Language to which the app is now set."
type"string"
requiredfalse
sessionToken
description"Session token for this interaction funnel, i.e. starts when the user enters the language selection dialog, and ends with the user either selects a new language, or backs out."
type"string"
requiredtrue
appInstallID
description"AppInstallID that's unique to each app install and is used to track user across this and other features in the mobile app"
type"string"
requiredtrue
ts
description"Client-side timestamp at which this event occurred"
type"string"
requiredtrue