Hardcode experiment name.

This commit is contained in:
Chris Aprea 2022-05-12 13:11:42 +10:00
parent 022c60f9e5
commit c6836e270e
1 changed files with 1 additions and 11 deletions

View File

@ -257,16 +257,6 @@ class WcPaySubscriptionsPage {
$allow_tracking
);
$date = new \DateTime();
$date->setTimeZone( new \DateTimeZone( 'UTC' ) );
$experiment_name = sprintf(
'%s_%s_%s',
'woocommerce_wcpay_subscriptions_page',
$date->format( 'Y' ),
$date->format( 'm' )
);
return $abtest->get_variation( $experiment_name ) === 'control' ? 'A' : 'B';
return $abtest->get_variation( 'woocommerce_wcpay_subscriptions_page_202207_v1' ) === 'control' ? 'A' : 'B';
}
}