Page MenuHomePhabricator

Image instrumentation: captions onboarding dialog
Closed, ResolvedPublic

Description

Associated feature: T292887: Add an image: captions onboarding dialog


When the user advances to the caption step by selecting "yes" on the image inspector, they may see the captions onboarding dialog depending on whether they have chosen "don't show this again" in the past. We want to record events for these actions:

  • Impression of the dialog
  • Closing the dialog.
    • This event should store whether the "don't show this again" checkbox was selected at the time it was closed.
  • From where the dialog was opened. It comes from two places, and we want to record which one it came from:
    • Arrival on the caption step
    • Selecting the question mark icon during the caption step

Event Timeline

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

[mediawiki/extensions/GrowthExperiments@master] Add an image: instrumentation for caption info dialog

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

Caption onboarding

event: {
  "action": "impression",
  "action_data": "dialog_context=onboarding",
  "is_mobile": true,
  "newcomer_task_token": "5b2e30725c97f0f181bc",
  "page_id": 1789,
  "page_title": "Edward Edwards (Royal Navy officer)",
  "homepage_pageview_token": "joif7ke38a2pd8eeloo0oo7ngi9rds98",
  "active_interface": "captioninfo_dialog",
  "$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-03T21:03:47.364Z"
}

Closing onboarding w/Don't show again selected

event: {
  "action": "close",
  "action_data": "dialog_context=onboarding;dont_show_again=true",
  "is_mobile": true,
  "newcomer_task_token": "5b2e30725c97f0f181bc",
  "page_id": 1789,
  "page_title": "Edward Edwards (Royal Navy officer)",
  "homepage_pageview_token": "joif7ke38a2pd8eeloo0oo7ngi9rds98",
  "active_interface": "captioninfo_dialog",
  "$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-03T21:04:53.588Z"
}

Closing onboarding w/Don't show again de-selected

event: {
  "action": "close",
  "action_data": "dialog_context=onboarding;dont_show_again=false",
  "is_mobile": true,
  "newcomer_task_token": "a359e19aff05668599e0",
  "page_id": 1789,
  "page_title": "Edward Edwards (Royal Navy officer)",
  "homepage_pageview_token": "8sfpmkms6lusjsp0sf065d4j2u0re8ia",
  "active_interface": "captioninfo_dialog",
  "$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-03T21:06:34.833Z"
}

Caption help

event: {
  "action": "impression",
  "action_data": "dialog_context=help",
  "is_mobile": true,
  "newcomer_task_token": "5b2e30725c97f0f181bc",
  "page_id": 1789,
  "page_title": "Edward Edwards (Royal Navy officer)",
  "homepage_pageview_token": "joif7ke38a2pd8eeloo0oo7ngi9rds98",
  "active_interface": "captioninfo_dialog",
  "$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-03T21:05:19.933Z"
}

Closing caption help

event: {
  "action": "close",
  "action_data": "dialog_context=help",
  "is_mobile": true,
  "newcomer_task_token": "5b2e30725c97f0f181bc",
  "page_id": 1789,
  "page_title": "Edward Edwards (Royal Navy officer)",
  "homepage_pageview_token": "joif7ke38a2pd8eeloo0oo7ngi9rds98",
  "active_interface": "captioninfo_dialog",
  "$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-03T21:05:41.445Z"
}

Change 736566 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Add an image: instrumentation for caption info dialog

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

Checked on testwiki wmf.9 -all seem according to the specs and https://phabricator.wikimedia.org/T294670#7479815

From where the dialog was opened. It comes from two places, and we want to record which one it came from:

Arrival on the caption step

active_interface: "caption_entry"

{action: 'impression', action_data: 'filename=Glosario_latino_(964).jpg;recommendation_…ns=1;rejection_reasons=;acceptance_state=accepted', is_mobile: false, newcomer_task_token: '93e40008f70d2f24dbc8', page_id: 121858, …}
$schema: "/analytics/mediawiki/structured_task/article/image_suggestion_interaction/1.1.2"
action: "impression"
action_data: "filename=Glosario_latino_(964).jpg;recommendation_source=wikipedia;recommendation_source_projects=lawiki,ptwiki;series_number=1;total_suggestions=1;rejection_reasons=;acceptance_state=accepted"
active_interface: "caption_entry"
dt: "2021-11-23T22:58:04.834Z"
homepage_pageview_token: "bsirkjfrll0kd69t3u3q26k851b4utvt"
is_mobile: false
meta: {stream: 'mediawiki.structured_task.article.image_suggestion_interaction', domain: 'test.wikipedia.org'}
newcomer_task_token: "93e40008f70d2f24dbc8"
page_id: 121858
page_title: "Ermoldus Nigellus"
Selecting the question mark icon during the caption step

"captioninfo_dialog"

{action: 'impression', action_data: 'filename=Titicaca_tourist_boat.jpg;recommendation_…ns=;acceptance_state=accepted;dialog_context=help', is_mobile: false, newcomer_task_token: 'fc6693b67df580e3b84d', page_id: 121992, …}
$schema: "/analytics/mediawiki/structured_task/article/image_suggestion_interaction/1.1.2"
action: "impression"
action_data: "filename=Titicaca_tourist_boat.jpg;recommendation_source=wikipedia;recommendation_source_projects=quwiki;series_number=1;total_suggestions=1;rejection_reasons=;acceptance_state=accepted;dialog_context=help"
active_interface: "captioninfo_dialog"
dt: "2021-11-23T23:08:02.372Z"
homepage_pageview_token: "sb2u5ll2p92bbdocgj90ckf2ejrsv1e0"
is_mobile: false
meta: {stream: 'mediawiki.structured_task.article.image_suggestion_interaction', domain: 'test.wikipedia.org'}
newcomer_task_token: "fc6693b67df580e3b84d"
page_id: 121992
page_title: "Achaya District"

Checked event data in the Data Lake, and these appear to be captured correctly there as well.