PHP logging
EventLogging::logEvent( 'MobileWikiAppDailyStats', 18115101, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"MobileWikiAppDailyStats": 18115101
}
}
}
}
JavaScript logging
mw.track( 'event.MobileWikiAppDailyStats', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Track user activity once a day." |
---|
properties | appInstallAgeDays | description | "The number of days since the app was first installed." |
---|
type | "integer" |
---|
required | true |
---|
|
---|
is_anon | required | false |
---|
description | "Whether a user is logged in." |
---|
type | "boolean" |
---|
|
---|
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" |
---|
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 |
---|
|
---|
|
---|