Collect data on:
[] Number of times the dialog opened to edit existing TemplateData (track template name)
[] Number of times the dialog opened to add new TemplateData (track template name)
[] Number of times the dialog is closed with actual changes being saved vs the workflow being abandoned (also differentiate between whether the user was editing existing TemplateData or adding new TemplateData)
In the TemplateData dialog, track:
[] Change of parameter type from default ‘unknown’ to something specific (track interaction with UI element i.e. count "clicks" on non-default options)
[] Change of priority from default ‘optional’ to another priority (track interaction with UI element i.e. count "clicks" on non-default options)
[] Add or change information to a descriptive, help-oriented parameter field - individually for: label, description, example, default (differentiation between add and change is not necessary)
[] Add or change template description (differentiation between add and change is not necessary)
[] Change ParamOrder (only interested in whether the user did any drag and drop change or no change at all, i.e. do **not** count clicks)
Segment data by:
[] Segment across the four wikis we are currently tracking: en, de, fa, tr
[] Segment by editor experience count (0-10, 11-100, 101-1.000, 1.001-10.000, 10.001+)
[] No need to segment per template
[] Make sure it's visible how fine-grained each number is. E.g. a user might open the dialog 1 time, but interact with type/priority multiple times.
Other requirements:
[] Add the topic to the inclusion list for sanitization
Note: No information is currently being tracked for the TemplateData editor.
Implementation notes
===
New EventLogging topic: [[ https://meta.wikimedia.org/wiki/Schema:TemplateDataEditor | Schema:TemplateDataEditor ]]
Actions defined:
* `dialog-open-create` - Open the dialog to create a new TemplateData record where none existed.
* `dialog-open-edit` - Open the dialog to edit an existing TemplateData.
* `parameter-default-change` - Edit a parameter's "Default" field.
* `parameter-description-change` - Edit a parameter's "Description" field. Sent once per parameter per dialog session.
* `parameter-example-change` - Edit a parameter's "Example" field. Sent once per parameter per dialog session.
* `parameter-label-change` - Edit a parameter's "Label" field. Sent once per parameter per dialog session.
* `parameter-priority-set` - Change a parameter's priority away from the default "Optional". Sent once per parameter per dialog session.
* `parameter-reorder` - Drag parameters to change their order. Sent once per dialog session.
* `parameter-type-set` - A parameter's "Type" field was changed away from the default "Unknown". Sent once per parameter per dialog session.
* `save-page-create` - User attempts to save the page, and we are creating a new TemplateData record.
* `save-page-edit` - User attempts to save changes to an existing TemplateData record.
* `template-description-change` - Edit the template's Description field. Sent once per dialog session.
We will also collect data on which individual performed an action, to answer questions like "What percentage of TemplateData editors perform action X"?