-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Jetpack: monthly plans test #11704
Jetpack: monthly plans test #11704
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tests well for me 👍
One minor thing that I've noticed: if you try to access /jetpack/connect/plans/monthly/$site
with the test enabled (hideMonthly
) for a free site, you will see reduced prices by 12 times, because it calculates the monthly price based on the yearly price / 12. This, however, will only happen if the user specifically visits this URL, because the monthly/yearly tabs are no longer visible (as expected).
client/lib/abtest/active-tests.js
Outdated
showMonthy: 50, | ||
hideMonthly: 50 | ||
}, | ||
defaultVariation: 'showMonthy', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have a typo on various locations: showMonthy
instead of showMonthly
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
damn autocomplete ... make the typo once, propagate it forever
…early one in the no-monthly side of the test
good catch @tyxla . I handled that case in a new commit |
Fixes #11607
TLDR: We are going to run an a/b test removing the jetpack monthly plans.
This PR implements it.
How to test:
0. First, go to http://calypso.localhost:3000/plans/ and select a jetpack site ... make sure everything looks right. Then connect that site and make sure everything works fine in the plans selection screen ( you will need a site without any purchased plan so you can see the plans step there)
Now let's start the test. Open the developer tools and run this in the console:
localStorage.setItem( 'ABTests', '{"jetpackPlansNoMonthly_20170302":"hideMonthly"}' );
Go to http://calypso.localhost:3000/plans/ and select a jetpack site that doesn't have any paid plan. You should see something like this:
Disconnect that site and connect it again. In the plans selection step you should see:
Now purchase a plan with that site (or select any site with an already purchased plan). Go back to http://calypso.localhost:3000/plans/[site-slug]. This time, you should see the monthly plans selector:
Make sure you can see the monthly version of the plans
Now choose a WordPress.com site and go to the plans page again. Make sure nothing in this PR interfers with dotcom plans