Closed Bug 1877788 Opened 1 year ago Closed 1 year ago

Record reach for all messaging experiment features

Categories

(Firefox :: Messaging System, task, P1)

task
Points:
2

Tracking

()

RESOLVED FIXED
125 Branch
Iteration:
125.2 - Mar 4 - Mar 15
Tracking Status
firefox125 --- fixed

People

(Reporter: aminomancer, Assigned: hanna_a)

References

(Blocks 1 open bug)

Details

(Whiteboard: [omc])

Attachments

(1 file)

Currently, we only record reach for 5 feature ids:

const REACH_EVENT_GROUPS = [
  "cfr",
  "moments-page",
  "infobar",
  "spotlight",
  "featureCallout",
];

But nowadays, there are many more messaging experiment feature ids that we'd want reach for. So, instead of using REACH_EVENT_GROUPS (which can be removed), we should use MESSAGING_EXPERIMENTS_DEFAULT_FEATURES. This will extend reach to the generic feature ids that we use when the named feature ids are already occupied.

The reason to do this is to reduce the risk of running an experiment where a precise exposure basis cannot be calculated. We need exposure or reach from the control branch to do this properly. But exposure is only recorded for control if the control message is a complete message (without content or template, to avoid actually showing something). If it's just an empty object {} exposure won't be recorded. And if that happens, reach is the only way to salvage the basis. But if the experiment is also on one of the fxms-message-* features, then we won't have that either, leaving DS with no option but to estimate exposure using past knowledge or some highbrow hackery beyond the comprehension of mere mortals.

Points: --- → 1

Performance concerns related to reach came up when we did a couple of reach experiments like this one. The concern was mostly about sending reach for many different branches per user at once and the larger lists involved. Ultimately, we went ahead and never became aware of any problems.

For the normal use cases, we've been doing this for a small number of branches in our experiments forever and have not surfaced any problems of this sort, it's hard for me to imagine that the normal usage patterns would somehow magically be different for the same surfaces on what are just different fxms-* feature ids. I think we should do it for the principle of least surprise, in addition to the reasons Shane mentioned.

That said, I think pbNewtab warrants a discussion with legal making the change there, and that could happen either as part of this bug or it could just stay in bug 1855401.

Part of the scope of this bug should be verifying/updating existing docs on firefox-source-docs and experiment.info to make sure they reflect the new state of reality w.r.t. reach (eg all feature-ids or all except pbNewtab with a link to that bug).

It does seem reasonable to handle pbNewtab separately. So for this bug, we can add a special exclusion for pbNewtab, and potentially remove it later in bug 1855401.

(In reply to Dan Mosedale (:dmosedale, :dmose) from comment #2)

Part of the scope of this bug should be verifying/updating existing docs on firefox-source-docs and experiment.info to make sure they reflect the new state of reality w.r.t. reach (eg all feature-ids or all except pbNewtab with a link to that bug).

Also our reach documentation has moved to the Glean dictionary, so we may wanna update that too. There'll be an edit button at the bottom of the annotations, leading to a github edit prompt.

Iteration: --- → 124.2 - Feb 4 - Feb 16
Points: 1 → 2
Priority: -- → P1
Assignee: nobody → halemu
Assignee: halemu → nobody
Iteration: 124.2 - Feb 4 - Feb 16 → 125.1 - Feb 19 - Mar 1
Assignee: nobody → halemu
Iteration: 125.1 - Feb 19 - Mar 1 → 125.2 - Mar 4 - Mar 15
Attachment #9389797 - Attachment description: WIP: Bug 1877788 - Record reach for all messaging experiment features → Bug 1877788 - Record reach for all messaging experiment features r=#omc-reviewers
Attachment #9389797 - Attachment description: Bug 1877788 - Record reach for all messaging experiment features r=#omc-reviewers → Bug 1877788 - Record reach for all messaging experiment features
Pushed by halemu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/757f786bddde Record reach for all messaging experiment features r=omc-reviewers,aminomancer
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: