Jump to content

Schema:UniversalLanguageSelector-tofu

PHP logging

EventLogging::logEvent( 'UniversalLanguageSelector-tofu', 7645158, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"UniversalLanguageSelector-tofu": 7645158
			}
		}
	}
}

JavaScript logging

mw.track( 'event.UniversalLanguageSelector-tofu', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 7645158
description"Schema for logging tofu detection in UniversalLanguageSelector."
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."
token
type"string"
description"Username for logged in users or session token for anonymous users"
requiredtrue
tofuElementLanguage
type"string"
description"Language code of the element in which tofu was detected."
requiredtrue
webfontsEnabled
type"boolean"
description"Does the user have the webfonts enabled."
requiredtrue