How is it calculated?
Choose one metric that decides the test, usually a conversion rate, and work out the sample size you need before you start. A testing tool then assigns each visitor to version A or B, keeps them there on later visits, and counts visitors and conversions per version.
At the planned sample size, compare the two rates with a significance test such as a two-proportion z-test. Report the relative lift and its confidence interval, not only the winner.
Example
- 3.0% version A
- 3.6% version B
- 20% relative lift
A shop tests a shorter checkout. Version A gets 10,000 visitors and 300 orders (3.0%); version B gets 10,000 visitors and 360 orders (3.6%). The relative lift is (3.6% − 3.0%) ÷ 3.0% = 20%, and a two-proportion z-test gives p = 0.0175, below the 0.05 the team set in advance, so B ships.
Common mistakes
- Stopping the moment the result looks significant. Checking every day and stopping on the first good reading raises the false positive rate well above the alpha you chose.
- Testing with too little traffic. Small changes on low-converting pages need tens of thousands of visitors per version to detect.
- Changing several things at once and crediting one of them. A test tells you that version B won, not which of its five changes did the work.
- Picking the deciding metric after the results are in. With enough metrics, one of them will look significant by chance.