Jump to content

Schema:ContentTranslationSuggestion

PHP logging

EventLogging::logEvent( 'ContentTranslationSuggestion', 19004928, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"ContentTranslationSuggestion": 19004928
			}
		}
	}
}

JavaScript logging

mw.track( 'event.ContentTranslationSuggestion', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 19004928
description"Schema for ContentTranslation Suggestion events."
properties
version
type"integer"
requiredtrue
description"Version number. This field can be used to track changes in instrumentation that affect the nature of the data collected."
session
type"string"
description"Session id"
requiredtrue
token
type"string"
description"Username for logged in users or session token for anonymous users"
requiredtrue
suggestionId
type"string"
description"A unique Suggestion identifier"
requiredtrue
rank
type"integer"
description"Position the Suggestion holds in the list of suggestions"
requiredtrue
type
type"string"
description"Type of the Suggestion"
enum
"default"
"featured"
"discarded"
"favorite"
"category"
"personalized"
"unknown"
requiredtrue
typeExtra
type"string"
description"Additional information associated with the Suggestion type"
requiredtrue
action
type"string"
description"What action occured for a Suggestion: * shown: Shown to user. * accept: Accepted by user. * discard: Discarded by user. * favorite: Marked as a favorite by user."
enum
"shown"
"accept"
"discard"
"favorite"
requiredtrue
interfaceLanguage
type"string"
description"The current interface language."
requiredtrue
contentLanguage
type"string"
description"Language code of current content language."
requiredtrue
sourceLanguage
type"string"
description"The source language code"
requiredfalse
targetLanguage
type"string"
description"The target language code"
requiredfalse
sourceTitle
type"string"
description"Source title"
requiredfalse