PHP logging
EventLogging::logEvent( 'VisualEditorTemplateDialogUse', 21143796, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"VisualEditorTemplateDialogUse": 21143796
}
}
}
}
JavaScript logging
mw.track( 'event.VisualEditorTemplateDialogUse', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Tracking usage of the TemplateDialog in the VisualEditor extension." |
---|
properties | action | type | "string" |
---|
description | "The action that the user took that triggered the log event." |
---|
required | true |
---|
enum | "add-template" |
"edit" |
"save" |
|
---|
|
---|
template_names | type | "array" |
---|
description | "The titles of the templates that were acted upon." |
---|
required | false |
---|
items | type | "string" |
---|
description | "Template titles." |
---|
|
---|
|
---|
user_edit_count_bucket | type | "string" |
---|
required | false |
---|
description | "Reduced granularity edit count, safe to keep in the sanitized stream. This is optional, and will not be present for anonymous users." |
---|
enum | "0 edits" |
"1-4 edits" |
"5-99 edits" |
"100-999 edits" |
"1000+ edits" |
|
---|
|
---|
|
---|