Skip to content

Commit bce0874

Browse files
authored
Revert signupWithBasicSite A/B test (#37202)
* Revert signupWithBasicSite A/B test
1 parent 8e41c15 commit bce0874

File tree

4 files changed

+3
-46
lines changed

4 files changed

+3
-46
lines changed

client/lib/abtest/active-tests.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,6 @@ export default {
8989
defaultVariation: 'notSkippable',
9090
allowExistingUsers: true,
9191
},
92-
signupWithBasicSite: {
93-
datestamp: '20190930',
94-
variations: {
95-
variant: 50,
96-
control: 50,
97-
},
98-
defaultVariation: 'control',
99-
allowExistingUsers: true,
100-
},
10192
verticalSuggestedThemes: {
10293
datestamp: '20191031',
10394
variations: {

client/signup/config/flows-pure.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,6 @@ export function generateFlows( {
120120
lastModified: '2019-06-20',
121121
},
122122

123-
'get-started': {
124-
steps: [ 'user', 'site-type', 'domains', 'plans' ],
125-
destination: getSignupDestination,
126-
description: 'A blank slate flow used with the `signupEscapeHatch` AB test',
127-
lastModified: '2019-09-23',
128-
},
129-
130123
desktop: {
131124
steps: [ 'about', 'themes', 'domains', 'plans', 'user' ],
132125
destination: getSignupDestination,

client/signup/steps/site-type/index.jsx

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { connect } from 'react-redux';
88
/**
99
* Internal dependencies
1010
*/
11-
import { abtest } from 'lib/abtest';
1211
import { isEnabled } from 'config';
1312
import hasInitializedSites from 'state/selectors/has-initialized-sites';
1413
import Button from 'components/button';
@@ -18,11 +17,9 @@ import { getSiteType } from 'state/signup/steps/site-type/selectors';
1817
import { submitSiteType } from 'state/signup/steps/site-type/actions';
1918
import { saveSignupStep } from 'state/signup/progress/actions';
2019
import { recordTracksEvent } from 'state/analytics/actions';
21-
import { setSiteVertical } from 'state/signup/steps/site-vertical/actions';
2220

2321
const siteTypeToFlowname = {
2422
import: 'import-onboarding',
25-
'get-started': 'get-started',
2623
'online-store': 'ecommerce-onboarding',
2724
};
2825

@@ -39,19 +36,11 @@ class SiteType extends Component {
3936
this.submitStep( 'import' );
4037
};
4138

42-
// This function is to support the A/B test `signupWithBasicSite`
43-
// by using a flow that does not include intermediary steps before 'domain'
44-
handleBasicSiteButtonClick = () => this.submitStep( 'business', 'get-started' );
45-
46-
submitStep = ( siteTypeValue, flowName ) => {
39+
submitStep = siteTypeValue => {
4740
this.props.submitSiteType( siteTypeValue );
4841

49-
if ( flowName ) {
50-
this.props.goToNextStep( flowName );
51-
return;
52-
}
53-
5442
// Modify the flowname if the site type matches an override.
43+
let flowName;
5544
if ( 'import-onboarding' === this.props.flowName ) {
5645
flowName = siteTypeToFlowname[ siteTypeValue ] || 'onboarding';
5746
} else {
@@ -75,20 +64,6 @@ class SiteType extends Component {
7564
);
7665
}
7766

78-
renderStartWithBasicSiteButton() {
79-
if ( 'variant' !== abtest( 'signupWithBasicSite' ) ) {
80-
return null;
81-
}
82-
83-
return (
84-
<div className="site-type__basic-site">
85-
<Button borderless onClick={ this.handleBasicSiteButtonClick }>
86-
{ this.props.translate( 'Skip setup and start with a basic website.' ) }
87-
</Button>
88-
</div>
89-
);
90-
}
91-
9267
renderStepContent() {
9368
const { siteType } = this.props;
9469

@@ -99,7 +74,6 @@ class SiteType extends Component {
9974
submitForm={ this.submitStep }
10075
siteType={ siteType }
10176
/>
102-
{ this.renderStartWithBasicSiteButton() }
10377
{ this.renderImportButton() }
10478
</Fragment>
10579
);
@@ -142,5 +116,5 @@ export default connect(
142116
siteType: getSiteType( state ) || 'blog',
143117
hasInitializedSitesBackUrl: hasInitializedSites( state ) ? '/sites/' : false,
144118
} ),
145-
{ recordTracksEvent, saveSignupStep, submitSiteType, setSiteVertical }
119+
{ recordTracksEvent, saveSignupStep, submitSiteType }
146120
)( localize( SiteType ) );

client/signup/steps/site-type/style.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
}
8686
}
8787

88-
.site-type__basic-site,
8988
.site-type__import-button {
9089
text-align: center;
9190
margin-top: 20px;

0 commit comments

Comments
 (0)