Whenever one of the following actions is completed we want to log it using mw.eventLog.submitInteraction like it's done for example in:
https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikiLambda/+/992226
Implementation details
- Check what might already be logged in https://www.mediawiki.org/wiki/VisualEditor/FeatureUse_data_dictionary
- It might make sense to have a helper function like defined in the above example that guards to make sure we can submit events in general
- The concert schema we're using still might need to be defined but putting the calls to the event logging at the right spot with the right data is most of the work
- In every case we need an action name for each event. Defining these is part of this task and each could be documented in the parent ticket
- We want to log the current edit session with each event as custom data, make sure we have that
- How often users paste from the clipboard and create a new reference by doing so.
- feature: activity.clipboard, action: paste-ref-internal-new (this implies a cut-and-paste)
- feature: activity.clipboard, action: paste-ref-external (from another document or HTML)
- How often users paste and create a reference re-use with that
- feature: activity.clipboard, action: paste-ref-internal-reuse (may have already been a reuse--it would be possible to get visibility into this if we care.)