Skip to content

Commit 00c5929

Browse files
authored
Start monthly/yearly billing button test (#18233)
1 parent 163c82c commit 00c5929

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

client/lib/abtest/active-tests.js

+8
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,12 @@ module.exports = {
105105
allowExistingUsers: true,
106106
localeTargets: 'any',
107107
},
108+
jetpackBillingButtonTextI1: {
109+
datestamp: '20170925',
110+
variations: {
111+
original: 50,
112+
modified: 50,
113+
},
114+
defaultVariation: 'original',
115+
},
108116
};

client/my-sites/plans-features-main/index.jsx

+11-2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import purchasesPaths from 'me/purchases/paths';
3232
import { plansLink } from 'lib/plans';
3333
import SegmentedControl from 'components/segmented-control';
3434
import SegmentedControlItem from 'components/segmented-control/item';
35+
import { abtest } from 'lib/abtest';
3536

3637
class PlansFeaturesMain extends Component {
3738
getPlanFeatures() {
@@ -336,20 +337,28 @@ class PlansFeaturesMain extends Component {
336337
plansUrl = basePlansPath;
337338
}
338339

340+
const isInBillingButtonTest = abtest( 'jetpackBillingButtonTextI1' ) === 'modified';
341+
339342
return (
340343
<SegmentedControl compact className={ segmentClasses } primary={ true }>
341344
<SegmentedControlItem
342345
selected={ intervalType === 'monthly' }
343346
path={ plansLink( plansUrl, site, 'monthly' ) }
344347
>
345-
{ translate( 'Monthly billing' ) }
348+
{ isInBillingButtonTest
349+
? translate( 'Monthly' )
350+
: translate( 'Monthly billing' )
351+
}
346352
</SegmentedControlItem>
347353

348354
<SegmentedControlItem
349355
selected={ intervalType === 'yearly' }
350356
path={ plansLink( plansUrl, site, 'yearly' ) }
351357
>
352-
{ translate( 'Yearly billing' ) }
358+
{ isInBillingButtonTest
359+
? translate( 'Yearly (Cheaper)' )
360+
: translate( 'Yearly billing' )
361+
}
353362
</SegmentedControlItem>
354363
</SegmentedControl>
355364
);

0 commit comments

Comments
 (0)