PHP logging

EventLogging::logEvent( 'VisualEditorFeatureUse', 19394251, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"VisualEditorFeatureUse": 19394251
			}
		}
	}
}

JavaScript logging

mw.track( 'event.VisualEditorFeatureUse', { /* ... */ } );

Schema:VisualEditorFeatureUse

From Meta, a Wikimedia project coordination wiki
Revision 19394251
Jump to navigation Jump to search
description"Basic data on the use of various tools and feature provided by the VisualEditor. You can join it with Schema:EditAttemptStep data to enrich with user- and session-level data. For living dictionary of current values, see https://www.mediawiki.org/wiki/VisualEditor/FeatureUse_data_dictionary"
properties
editingSessionId
type"string"
requiredtrue
description"Alphanumeric code used to uniquely identify a single editing attempt. Must be the same ID as used for Schema:EditAttemptStep."
feature
type"string"
requiredtrue
description"The user-facing capability that is being used, such as 'link', 'autosave', 'clipboard' or 'textStyle/bold'. This is not an enum so that the visual editor's maintainers have flexibility in which of its many features to implement and because extensions can add arbitrary new features which could pass through already-instrumented code paths."
action
type"string"
requiredtrue
description"The specific, technical action that has been trigged, written as a hyphen-separated phrase consisting of the object and the action taken. For example, 'dialog-open' or 'annotation-toggle-selection'. This is not an enum so that the visual editor's maintainers have flexibility in which of its many features to implement and because extensions can add arbitrary new features which could pass through already-instrumented code paths."