Page MenuHomePhabricator

Image instrumentation: edit summary
Closed, ResolvedPublic

Description

Corresponding task from "add a link": T278118: Instrumentation: Edit summary
Associated feature: T292092: Add an image: overlay onboarding


Once the user is on the edit summary screen, we want to record these actions:

  • Impression for the screen, including whether they accepted or rejected the image (this indicates the state of the screen).
  • Selecting the "back" arrow to return to the caption step.
  • Selecting the "review your changes" button.
  • Selecting the Publish/Submit button.
  • If the user had accepted the image, the publish event should include the number of characters in the caption.

Event Timeline

Change 737135 had a related patch set uploaded (by MewOphaswongse; author: MewOphaswongse):

[schemas/event/secondary@master] Add an image: update schema for editsummary_dialog

https://gerrit.wikimedia.org/r/737135

Change 737136 had a related patch set uploaded (by MewOphaswongse; author: MewOphaswongse):

[mediawiki/extensions/GrowthExperiments@master] Add an image: edit summary instrumentation

https://gerrit.wikimedia.org/r/737136

Sample events:

Impression (rejected)

event: {
  "action": "impression",
  "action_data": "acceptance_state=rejected",
  "is_mobile": true,
  "active_interface": "editsummary_dialog",
  "newcomer_task_token": "739f59605020bd94e1ec",
  "page_id": 1789,
  "page_title": "Edward Edwards (Royal Navy officer)",
  "homepage_pageview_token": "lf8lidfquuol581137kh7a8h70r996nr",
  "$schema": "/analytics/mediawiki/structured_task/article/image_suggestion_interaction/1.1.0",
  "meta": {
    "stream": "mediawiki.structured_task.article.image_suggestion_interaction",
    "domain": "192.168.86.22"
  },
  "dt": "2021-11-05T21:26:49.550Z"
}

Impression (accepted)

event: {
  "action": "impression",
  "action_data": "acceptance_state=accepted;caption_length=15",
  "is_mobile": true,
  "active_interface": "editsummary_dialog",
  "newcomer_task_token": "8dee0874d6df4732f7a8",
  "page_id": 1789,
  "page_title": "Edward Edwards (Royal Navy officer)",
  "homepage_pageview_token": "8pjob3ev3s5bha5t8b3tqtrq4usq8v91",
  "$schema": "/analytics/mediawiki/structured_task/article/image_suggestion_interaction/1.1.0",
  "meta": {
    "stream": "mediawiki.structured_task.article.image_suggestion_interaction",
    "domain": "192.168.86.22"
  },
  "dt": "2021-11-05T21:28:20.236Z"
}

Back

event: {
  "action": "close",
  "action_data": "acceptance_state=accepted;caption_length=15",
  "is_mobile": true,
  "active_interface": "editsummary_dialog",
  "newcomer_task_token": "8dee0874d6df4732f7a8",
  "page_id": 1789,
  "page_title": "Edward Edwards (Royal Navy officer)",
  "homepage_pageview_token": "8pjob3ev3s5bha5t8b3tqtrq4usq8v91",
  "$schema": "/analytics/mediawiki/structured_task/article/image_suggestion_interaction/1.1.0",
  "meta": {
    "stream": "mediawiki.structured_task.article.image_suggestion_interaction",
    "domain": "192.168.86.22"
  },
  "dt": "2021-11-05T21:28:40.204Z"
}

Review

event: {
  "action": "editsummary_review",
  "action_data": "acceptance_state=accepted;caption_length=15",
  "is_mobile": true,
  "active_interface": "editsummary_dialog",
  "newcomer_task_token": "8dee0874d6df4732f7a8",
  "page_id": 1789,
  "page_title": "Edward Edwards (Royal Navy officer)",
  "homepage_pageview_token": "8pjob3ev3s5bha5t8b3tqtrq4usq8v91",
  "$schema": "/analytics/mediawiki/structured_task/article/image_suggestion_interaction/1.1.0",
  "meta": {
    "stream": "mediawiki.structured_task.article.image_suggestion_interaction",
    "domain": "192.168.86.22"
  },
  "dt": "2021-11-05T21:29:04.942Z"
}

Save (rejected)

event: {
  "action": "editsummary_save",
  "action_data": "acceptance_state=rejected",
  "is_mobile": true,
  "active_interface": "editsummary_dialog",
  "newcomer_task_token": "739f59605020bd94e1ec",
  "page_id": 1789,
  "page_title": "Edward Edwards (Royal Navy officer)",
  "homepage_pageview_token": "lf8lidfquuol581137kh7a8h70r996nr",
  "$schema": "/analytics/mediawiki/structured_task/article/image_suggestion_interaction/1.1.0",
  "meta": {
    "stream": "mediawiki.structured_task.article.image_suggestion_interaction",
    "domain": "192.168.86.22"
  },
  "dt": "2021-11-05T21:27:21.446Z"
}

Save (accepted)

event: {
  "action": "editsummary_save",
  "action_data": "acceptance_state=accepted;caption_length=15",
  "is_mobile": true,
  "active_interface": "editsummary_dialog",
  "newcomer_task_token": "8dee0874d6df4732f7a8",
  "page_id": 1789,
  "page_title": "Edward Edwards (Royal Navy officer)",
  "homepage_pageview_token": "8pjob3ev3s5bha5t8b3tqtrq4usq8v91",
  "$schema": "/analytics/mediawiki/structured_task/article/image_suggestion_interaction/1.1.0",
  "meta": {
    "stream": "mediawiki.structured_task.article.image_suggestion_interaction",
    "domain": "192.168.86.22"
  },
  "dt": "2021-11-05T21:29:24.349Z"
}

Change 737135 merged by jenkins-bot:

[schemas/event/secondary@master] Add an image: update schema for editsummary_dialog

https://gerrit.wikimedia.org/r/737135

Change 737136 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Add an image: edit summary instrumentation

https://gerrit.wikimedia.org/r/737136

Checked - all looks according to the specs and the details are matched https://phabricator.wikimedia.org/T294672#7486707

Note: If a user selects Minerva skin on Desktop, Add image will work. The schema would record is_mobile: false.

{action: 'impression', action_data: 'filename=Picto_infobox_reptile.png;recommendation_…ns=1;rejection_reasons=;acceptance_state=accepted', is_mobile: false, newcomer_task_token: '4e2013a2f0aafbd9950d', page_id: 265138, …}
$schema: "/analytics/mediawiki/structured_task/article/image_suggestion_interaction/1.1.2"
action: "impression"
action_data: "filename=Picto_infobox_reptile.png;recommendation_source=wikipedia;recommendation_source_projects=kowiki;series_number=1;total_suggestions=1;rejection_reasons=;acceptance_state=accepted"
active_interface: "caption_entry"
dt: "2021-11-23T22:21:03.733Z"
homepage_pageview_token: "o6klsm2h2tkuttijl4dfjcu8ptanciq6"
is_mobile: false
meta: {stream: 'mediawiki.structured_task.article.image_suggestion_interaction', domain: 'en.wikipedia.beta.wmflabs.org'}
newcomer_task_token: "4e2013a2f0aafbd9950d"
page_id: 265138
page_title: "Hudson's Oldfield mouse"

We've used data for this extensively for T297138 and T296364. All the data I've seen made sense (e.g. users reaching the edit summary, reviewing, going back, etc…) As far as I can tell, this can be resolved.