Skip to content

Commit 12f350b

Browse files
feat(nimbus): Add advanced targeting for new users in New Tab 151.2.20260328.211913 train hop (#15424)
To support the [Kitified value prop on new tab experiment](https://docs.google.com/document/d/1TfMktdm5MFNrg15AYlIE6dOqpXGWvDhM8GQrsmrW3Jk/edit?tab=t.0) this commit adds advanced targeting that covers: - New users (profile age less than 48 hours) - New Tab 151.2.20260328.211913 train hop --------- Co-authored-by: Jared Lockhart <[email protected]>
1 parent b104e8a commit 12f350b

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

experimenter/experimenter/targeting/constants.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def __post_init__(self):
4747
PROFILE28DAYS = "(currentDate|date - profileAgeCreated|date) / 86400000 >= 28"
4848
PROFILELESSTHAN28DAYS = "(currentDate|date - profileAgeCreated|date) / 86400000 < 28"
4949
PROFILELESSTHAN1HOUR = "(currentDate|date - profileAgeCreated|date) / 3600000 < 1"
50+
PROFILELESSTHAN2DAYS = "(currentDate|date - profileAgeCreated|date) / 3600000 < 48"
5051
PROFILEMORETHAN7DAYS = "(currentDate|date - profileAgeCreated|date) / 86400000 > 7"
5152
NEW_PROFILE = "(currentDate|date - profileAgeCreated|date) / 3600000 <= 24"
5253
NEW_NON_SELECTABLE_PROFILE = f"({NEW_PROFILE}) && profileGroupProfileCount == 0"
@@ -4286,6 +4287,21 @@ def __post_init__(self):
42864287
application_choice_names=(Application.DESKTOP.name,),
42874288
)
42884289

4290+
FX_151_2_TRAINHOP_NEW_USERS = NimbusTargetingConfig(
4291+
name="New users with New Tab Fx151 Mar-28 Trainhop",
4292+
slug="newtab-151-0328-trainhop-new-users",
4293+
description=(
4294+
"Desktop new users with profile age less than 48 hours "
4295+
"having the New Tab 151.2.20260328.211913 train hop, "
4296+
"which includes users of Fx149"
4297+
),
4298+
targeting=f"{PROFILELESSTHAN2DAYS} && {FX_151_2_TRAINHOP.targeting}",
4299+
desktop_telemetry="",
4300+
sticky_required=True,
4301+
is_first_run_required=False,
4302+
application_choice_names=(Application.DESKTOP.name,),
4303+
)
4304+
42894305
BUILDID_20251006095753 = NimbusTargetingConfig(
42904306
name="Build ID 20251006095753 or higher",
42914307
slug="buildid-20251006095753",

0 commit comments

Comments
 (0)