PHP logging
EventLogging::logEvent( 'MobileWikiAppWiktionaryPopup', 18118768, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"MobileWikiAppWiktionaryPopup": 18118768
}
}
}
}
JavaScript logging
mw.track( 'event.MobileWikiAppWiktionaryPopup', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Measure user engagement with the Wiktionary definition popup dialog." |
---|
properties | text | description | "The text for which the definition was requested." |
---|
type | "string" |
---|
required | true |
---|
|
---|
time_spent | description | "Amount of time, in seconds, that the definition dialog remained on the screen." |
---|
type | "integer" |
---|
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 |
---|
|
---|
|
---|