Jump to content

Schema:TranslationRecommendationUIRequests

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
Revision 21139970
description"Logs user requests to the Translation Recommendation API"
properties
timestamp
description"Time the request was received in seconds since epoch"
type"integer"
requiredtrue
userAgent
description"User agent the request is being made with"
type"string"
requiredtrue
sourceLanguage
description"Source language identifier"
type"string"
requiredtrue
targetLanguage
description"Target language identifier"
type"string"
requiredtrue
seed
description"Seed parameter used for searching"
type"string"
requiredfalse
origin
description"What caused a request to be made"
type"string"
requiredtrue
enum
"form_submit"
"url_parameters"
"browser_settings"
"language_select"
"unknown"
searchAlgorithm
description"Search algorithm used"
type"string"
requiredfalse
enum
"morelike"
"wiki"
"google"
userId
description"Editor's user ID"
type"integer"
requiredfalse
userToken
description"Unique token to identify a user"
type"string"
requiredtrue
requestToken
description"Unique token to identify a request to the api"
type"string"
requiredtrue
campaign
description"Name of the campaign the user is in"
type"string"
requiredfalse
campaignCondition
description"Name of the campaign condition the user is in"
type"string"
requiredfalse