File tree 3 files changed +23
-12
lines changed
browser/components/asrouter/modules
toolkit/components/telemetry 3 files changed +23
-12
lines changed Original file line number Diff line number Diff line change @@ -106,18 +106,10 @@ const TOPIC_EXPERIMENT_ENROLLMENT_CHANGED = "nimbus:enrollments-updated";
106
106
const USE_REMOTE_L10N_PREF =
107
107
"browser.newtabpage.activity-stream.asrouter.useRemoteL10n" ;
108
108
109
- // Experiment groups that need to report the reach event in Messaging-Experiments.
110
- // If you're adding new groups to it, make sure they're also added in the
111
- // `messaging_experiments.reach.objects` defined in "toolkit/components/telemetry/Events.yaml"
112
- const REACH_EVENT_GROUPS = [
113
- "cfr" ,
114
- "moments-page" ,
115
- "infobar" ,
116
- "spotlight" ,
117
- "featureCallout" ,
118
- ] ;
119
109
const REACH_EVENT_CATEGORY = "messaging_experiments" ;
120
110
const REACH_EVENT_METHOD = "reach" ;
111
+ // Reach for the pbNewtab feature will be added in bug 1755401
112
+ const NO_REACH_EVENT_GROUPS = [ "pbNewtab" ] ;
121
113
122
114
export const MessageLoaderUtils = {
123
115
STARTPAGE_VERSION ,
@@ -405,7 +397,11 @@ export const MessageLoaderUtils = {
405
397
// Add Reach messages from unenrolled sibling branches, provided we are
406
398
// recording Reach events for this feature. If we are in a rollout, we do
407
399
// not have sibling branches.
408
- if ( ! REACH_EVENT_GROUPS . includes ( featureId ) || ! experimentData ) {
400
+ if (
401
+ NO_REACH_EVENT_GROUPS . includes ( featureId ) ||
402
+ ! MESSAGING_EXPERIMENTS_DEFAULT_FEATURES . includes ( featureId ) ||
403
+ ! experimentData
404
+ ) {
409
405
continue ;
410
406
}
411
407
Original file line number Diff line number Diff line change 15
15
* FeatureManifest.yaml. Conversely, messaging experiment features contain
16
16
* actual messages, with the usual message keys like `template` and `targeting`.
17
17
* @see FeatureManifest.yaml
18
+ * Messages delivered through these feature IDs record reach events, with the
19
+ * exception of "pbNewtab". If you're adding new features to this list, make
20
+ * sure they're also added in the `messaging_experiments.reach.objects` defined
21
+ * in "toolkit/components/telemetry/Events.yaml"
18
22
*/
19
23
export const MESSAGING_EXPERIMENTS_DEFAULT_FEATURES = [
20
24
"cfr" ,
Original file line number Diff line number Diff line change @@ -1550,7 +1550,18 @@ messaging_experiments:
1550
1550
" moments_page" ,
1551
1551
" infobar" ,
1552
1552
" spotlight" ,
1553
- " featureCallout"
1553
+ " featureCallout" ,
1554
+ " fxms_message_1" ,
1555
+ " fxms_message_2" ,
1556
+ " fxms_message_3" ,
1557
+ " fxms_message_4" ,
1558
+ " fxms_message_5" ,
1559
+ " fxms_message_6" ,
1560
+ " fxms_message_7" ,
1561
+ " fxms_message_8" ,
1562
+ " fxms_message_9" ,
1563
+ " fxms_message_10" ,
1564
+ " fxms_message_11"
1554
1565
]
1555
1566
methods : ["reach"]
1556
1567
release_channel_collection : opt-out
You can’t perform that action at this time.
0 commit comments