Jump to content

Schema:ContentTranslationCTA

PHP logging

EventLogging::logEvent( 'ContentTranslationCTA', 16017678, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"ContentTranslationCTA": 16017678
			}
		}
	}
}

JavaScript logging

mw.track( 'event.ContentTranslationCTA', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 16017678
description"Schema for ContentTranslation CTA 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
cta
type"string"
description"A unique CTA identifier"
requiredtrue
action
type"string"
description"What the user caused or did: * shown: The CTA was shown to user. * accept: User accepted CTA and by initiating a translation or atleast going to Special:CX. * reject: User explicitly cancelled the CTA"
enum
"shown"
"accept"
"reject"
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