PHP logging
EventLogging::logEvent( 'MobileWikiAppLanguageSettings', 18204567, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"MobileWikiAppLanguageSettings": 18204567
}
}
}
}
JavaScript logging
mw.track( 'event.MobileWikiAppLanguageSettings', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Summary of users' interactions with multilingual language switching feature in the app." |
---|
properties | source | description | "How the user arrived at the language settings screen." |
---|
enum | "onboarding" |
"settings" |
"search" |
"announcement" |
"chinese_variant_removal" |
|
---|
type | "string" |
---|
required | true |
---|
|
---|
initial | description | "JSON array of languages at the beginning of the interaction, in order. (e.g. '["fr","de"]')" |
---|
type | "string" |
---|
required | true |
---|
|
---|
final | description | "JSON array of languages at the end of the interactions, in order. (e.g. '["de","fr","es"]')" |
---|
type | "string" |
---|
required | true |
---|
|
---|
time_spent | description | "How long user interacted with language settings screen for (in seconds)." |
---|
type | "integer" |
---|
required | true |
---|
|
---|
interactions | description | "Number of (adding + rearranging + removing + searching) interactions by user, NOT including backing out of the screen." |
---|
type | "integer" |
---|
required | true |
---|
|
---|
searched | description | "Whether the user searched for a language (tracked separately)." |
---|
type | "boolean" |
---|
required | true |
---|
|
---|
session_token | description | "A randomly generated identifier for linking to language search summaries." |
---|
type | "string" |
---|
required | true |
---|
|
---|
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" |
---|
required | true |
---|
|
---|
client_dt | description | "Client-side ISO-8601-formatted date-time at which this event occurred." |
---|
type | "string" |
---|
required | true |
---|
|
---|
|
---|