Page MenuHomePhabricator

Update IRS instrumentation
Closed, ResolvedPublic

Description

The IRS instrumentation needs updating to support the new non-emergency workflow. Specifically, we've identified two things that need updating. The IRS instrumentation specification has been updated to reflect this and have the two related rows highlighted.

  1. When a user selects "Something else" as the reason and enters something in the associated field, we want to store what they've entered. With the recent update that expands action_context to 320 (MR), the event specification becomes as follows:
action: click
action_subtype: continue
action_source: describe_unacceptable_behavior
action_context: something-else; { user description truncated to 300 bytes }
funnel_entry_token
funnel_name: non-emergency
  1. When a user clicks a link on the "Support information" (or "Get support") page, the target page of the link is logged in an event. This link will still need truncation, but given the MR referenced above they can be longer than before (the previous limitation was 64). The event specification for this event stays the same:
action: click
action_source: get_support
action_context: {page_name}
funnel_entry_token
funnel_name: non_emergency

Event Timeline

Change #1217747 had a related patch set uploaded (by STran; author: STran):

[mediawiki/extensions/ReportIncident@master] Pass through "something else" details in instrumentation

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

Change #1217747 merged by jenkins-bot:

[mediawiki/extensions/ReportIncident@master] Pass through "something else" details in instrumentation

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

As expected:

{
    "action": "click",
    "funnel_entry_token": "****",
    "action_source": "get_support",
    "action_context": "mailto:test@mail.co",
    "funnel_name": "non-emergency",
    "funnel_event_sequence_position": 20,
}
{
    "action": "click",
    "funnel_entry_token": "****",
    "action_subtype": "continue",
    "action_source": "describe_unacceptable_behavior",
    "action_context": "something-else",
    "funnel_name": "non-emergency",
    "funnel_event_sequence_position": 6,
}