PHP logging
EventLogging::logEvent( 'TranslationRecommendationUIRequests', 21139970, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"TranslationRecommendationUIRequests": 21139970
}
}
}
}
JavaScript logging
mw.track( 'event.TranslationRecommendationUIRequests', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Logs user requests to the Translation Recommendation API" |
---|
properties | timestamp | description | "Time the request was received in seconds since epoch" |
---|
type | "integer" |
---|
required | true |
---|
|
---|
userAgent | description | "User agent the request is being made with" |
---|
type | "string" |
---|
required | true |
---|
|
---|
sourceLanguage | description | "Source language identifier" |
---|
type | "string" |
---|
required | true |
---|
|
---|
targetLanguage | description | "Target language identifier" |
---|
type | "string" |
---|
required | true |
---|
|
---|
seed | description | "Seed parameter used for searching" |
---|
type | "string" |
---|
required | false |
---|
|
---|
origin | description | "What caused a request to be made" |
---|
type | "string" |
---|
required | true |
---|
enum | "form_submit" |
"url_parameters" |
"browser_settings" |
"language_select" |
"unknown" |
|
---|
|
---|
searchAlgorithm | description | "Search algorithm used" |
---|
type | "string" |
---|
required | false |
---|
enum | "morelike" |
"wiki" |
"google" |
|
---|
|
---|
userId | description | "Editor's user ID" |
---|
type | "integer" |
---|
required | false |
---|
|
---|
userToken | description | "Unique token to identify a user" |
---|
type | "string" |
---|
required | true |
---|
|
---|
requestToken | description | "Unique token to identify a request to the api" |
---|
type | "string" |
---|
required | true |
---|
|
---|
campaign | description | "Name of the campaign the user is in" |
---|
type | "string" |
---|
required | false |
---|
|
---|
campaignCondition | description | "Name of the campaign condition the user is in" |
---|
type | "string" |
---|
required | false |
---|
|
---|
|
---|