Skip to content

Commit

Permalink
Update experiment slug for goals-first experience (#99133)
Browse files Browse the repository at this point in the history
* Updating goals-first experiment slug

* Stop forcing goals-first in development

Developers can start using the Explat interface for the
calypso_signup_onboarding_goals_first_flow_holdout_v2_20250131
experiment.
  • Loading branch information
p-jackson authored Feb 2, 2025
1 parent c148419 commit 3e12267
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useMemo } from 'react';
import { useExperiment } from 'calypso/lib/explat';
import { getFlowFromURL } from '../../utils/get-flow-from-url';

export const EXPERIMENT_NAME = 'calypso_signup_onboarding_goals_first_flow_holdout_20241220';
export const EXPERIMENT_NAME = 'calypso_signup_onboarding_goals_first_flow_holdout_v2_20250131';

/**
* Check whether the user should have the "goals first" onboarding experience.
Expand All @@ -31,5 +31,11 @@ export function useGoalsFirstExperiment(): [ boolean, boolean ] {
*/
const variationName = experimentAssignment?.variationName ?? 'control';

return [ isLoading, variationName === 'treatment' ];
// There's a separate cohort for holdout reasons. But in terms of the "goals-first" experience,
// both treatment cohorts see it.
const isGoalsAtFrontExperiment = [ 'treatment_cumulative', 'treatment_frozen' ].includes(
variationName
);

return [ isLoading, isGoalsAtFrontExperiment ];
}
2 changes: 1 addition & 1 deletion config/development.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
"onboarding/trail-map-feature-grid": false,
"onboarding/user-on-stepper-hosting": true,
"onboarding/big-sky-before-plans": true,
"onboarding/force-goals-first": true,
"onboarding/force-goals-first": false,
"p2/p2-plus": true,
"p2-enabled": false,
"page/export": true,
Expand Down

0 comments on commit 3e12267

Please sign in to comment.