Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Domain Search: A/B test for the placeholder text and examples for the domains search field #3728

Merged
merged 6 commits into from
Mar 4, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion client/components/domains/register-domain-step/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,19 @@ var RegisterDomainStep = React.createClass( {
},

searchForm: function() {
var placeholderText = this.translate( 'Enter a domain or keyword' ),
exampleDomains = '';

if ( ! this.props.isInSigup && abtest( 'domainSearchPlaceholderText' ) === 'searchForADomain' ) {
placeholderText = 'Search for a domain';

exampleDomains = (
<div className="register-domain-step__search-examples">
e.g. example.com, example.net
</div>
);
}

return (
<div className="register-domain-step__search">
<SearchCard
Expand All @@ -175,11 +188,12 @@ var RegisterDomainStep = React.createClass( {
onSearch={ this.onSearch }
onSearchChange={ this.onSearchChange }
onBlur={ this.save }
placeholder={ this.translate( 'Enter a domain or keyword', { textOnly: true } ) }
placeholder={ placeholderText }
autoFocus={ true }
delaySearch={ true }
delayTimeout={ 2000 }
/>
{ exampleDomains }
</div>
);
},
Expand Down
7 changes: 7 additions & 0 deletions client/components/domains/register-domain-step/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
}
}

.register-domain-step__search-examples {
color: $gray;
font-size: 13px;
font-style: italic;
margin: 8px 0 0 0;
}

@keyframes shake {
0%, 100% {
transform: translate3d( 0, 0, 0 );
Expand Down
9 changes: 8 additions & 1 deletion client/lib/abtest/active-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,12 @@ module.exports = {
defaultVariation: 'original',
excludeSitesWithPaidPlan: true
},

domainSearchPlaceholderText: {
datestamp: '20160304',
variations: {
original: 50,
searchForADomain: 50
},
defaultVariation: 'original'
},
};
3 changes: 2 additions & 1 deletion client/signup/steps/domains/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ module.exports = React.createClass( {
offerMappingOption
analyticsSection="signup"
includeWordPressDotCom
showExampleSuggestions />
showExampleSuggestions
isInSigup />
);
},

Expand Down