Sub topic 14
Measuring Conversion and Testing One Change at a Time
This chapter assumes you can read and write basic HTML, CSS, and JavaScript. It also assumes you know what a landing page is and what a conversion is. You have already built a page with a headline, proof, an offer, and a call to action (CTA). Now you need to find out whether it works, and how to improve it without guessing.
What you are measuring
A conversion is a visitor completing the one action you named as the page's goal. The conversion rate is the share of visitors who convert:
conversion rate = conversions ÷ visitors
If 2,000 people visit and 90 start a trial, the rate is 90 ÷ 2,000 = 4.5%.
Two decisions make this number meaningful.
- Define the conversion event. For the invoice example, the event is "reached the sign-up confirmation page", not "clicked the button". A click is a step toward the goal. It is not the goal. People click and then abandon the form.
- Define the visitor unit. Count unique visitors (or sessions) consistently. Mixing raw page views with unique visitors inflates or deflates the rate.
Keep the denominator honest. If your page receives bots, internal team traffic, or visitors from an ad that promised something different, the rate will reflect those people too. Filter out internal traffic where your tool allows it, and segment by traffic source when you read results.
Track the funnel, not just the end
A single rate tells you that something is wrong. It does not say where. Break the visit into steps and measure each one.
Read the funnel this way:
- Many leave before the proof section. The headline, subheadline, or hero visual is not holding attention. Check message match with the traffic source first.
- Many reach the proof but few click. The offer or CTA label is unclear, or the proof does not support the claim.
- Many click but few finish. The problem is after the landing page: a long form, an unexpected price, or a broken step.
This mapping connects measurement back to the page's structure. Each part of the page has a symptom you can look for.
Instrumenting the CTA placements
The page skeleton in this tutorial gives every CTA a data-cta attribute: hero in the first section and offer in the last. That lets you see which placement earns the click. The snippet below reads the attribute and logs it.
document.querySelectorAll('[data-cta]').forEach((link) => {
link.addEventListener('click', () => {
console.log('cta_click', link.dataset.cta);
});
});In production, replace console.log with your analytics tool's event call and send the placement as a property of the event. Then you can answer questions such as "Do visitors who click the hero CTA convert at a higher rate than those who click the offer CTA?"
Be careful about one limit. A click is recorded when the link is activated, and the browser then navigates away. Some analytics libraries drop events sent during navigation. If your numbers look too low, check that your tool uses a method that survives page unload.
Read a result with the right amount of doubt
Conversion data is noisy. Two groups of visitors will differ in rate by chance alone, even if the page is the same. Before you declare a winner, ask whether the gap is larger than chance would produce.
A few working rules:
- Sample size matters. 5 conversions versus 8 conversions is not a finding. With low traffic, you need a large difference to see it clearly.
- Decide the stopping point before you start. If you check results daily and stop the moment one version leads, you will often stop on a random swing. Choose a visitor count or duration in advance and keep to it.
- Run whole weeks. Behavior differs by weekday and weekend. A test that runs Monday to Thursday sees a different crowd from one that includes Saturday.
- Use a testing calculator. Most testing tools and free sample-size calculators accept your current rate and the smallest improvement you care about. They return the visitors needed per version.
Here is a rough illustration of why low traffic limits you. Suppose your baseline is 4%. To reliably detect a lift to 5%, you typically need several thousand visitors per version. A page with 200 visitors a week cannot detect that change in any reasonable time. For such a page, make larger changes, or rely on qualitative feedback such as user interviews and session recordings.
Test one change at a time
An A/B test shows version A (the control, your current page) to half of visitors and version B (the variant) to the other half. Visitors are assigned at random, and each visitor keeps the same version on return visits.
The rule is to change one thing. If you rewrite the headline, swap the hero image, and recolor the button in the variant, a lift tells you nothing about which change caused it. A drop is just as unreadable, because one change may have helped while another hurt.
Choose the change using the funnel:
| Funnel symptom | Part of the page to test | Example single change |
|---|---|---|
| Visitors leave at the top | Headline | Replace a vague claim with a specific benefit |
| Visitors read but do not click | CTA label | "Submit" to "Start your free trial" |
| Visitors reach the proof but hesitate | Proof | Move the testimonial above the offer |
| Visitors click but do not finish | Offer or risk reducer | State "No credit card required" near the button |
Write each test as a short hypothesis before you build it:
> Because many visitors leave before the proof section, changing the headline from a feature to a specific benefit will raise CTA clicks.
Write it without the quote marks in your own notes. A hypothesis names the observation, the change, and the metric you expect to move. It keeps you from running tests just because they are easy.
A worked example
Say the invoice page has these numbers over four full weeks.
- 4,000 visitors
- 1,200 reached the proof section (30%)
- 240 clicked a CTA (6%)
- 160 completed sign-up (4%)
The biggest loss is before the proof section: 70% never get there. So you test the headline. The control reads "Invoicing software for modern teams". The variant reads "Send invoices in under a minute". Nothing else changes: same image, same button, same offer.
Your primary metric is sign-ups. You also watch a secondary metric, CTA clicks, because it moves sooner and helps explain the result. You run the test for four full weeks with an even split.
Suppose the variant converts at 4.6% against the control's 4.0%, and the calculator says that gap is unlikely to be chance. You adopt the variant. Then you go back to the funnel and pick the next weakest step. That cycle (measure, hypothesize, change one thing, test) is the whole method.
Common errors
- Peeking and stopping early. Described above. It produces false winners.
- Testing too many things at once. The result cannot be traced to a cause.
- Optimizing the wrong metric. A scarier headline may raise clicks while lowering completed sign-ups. Judge by the conversion event, not the click.
- Ignoring traffic source. A variant can win with paid traffic and lose with email traffic. Check segments, but treat small segments cautiously.
- Overlapping tests. Two tests on the same page at once can interact. Run them one after another.
- Forgetting the accessible baseline. A test that hides the focus outline or lowers button contrast may raise clicks for some visitors and make the page unusable for others. Keep the
:focus-visibleoutline and strong contrast in every variant.
Keep a test log
Record each test in a short table so you do not repeat old ideas and can see what the page has already taught you.
| Date range | Hypothesis | Change | Primary metric | Result | Decision |
|---|---|---|---|---|---|
| Four weeks | Specific headline raises sign-ups | Headline text only | Sign-ups | 4.0% to 4.6% | Adopt variant |
A losing test is still useful. It tells you that the part you changed was probably not the bottleneck, which narrows where to look next.
Exercise
Your landing page has 5,000 visitors a month. 40% reach the proof section, 8% click a CTA, and 3% complete sign-up. A teammate proposes a variant that has a new headline, a new hero image, and a new button color, and wants to stop the test after three days because the variant is ahead. Name two problems with this plan and say what you would do instead.
Show answer
First, three changes at once means a result cannot be traced to a cause. Second, stopping after three days because the variant leads is peeking. It ignores weekday and weekend differences and risks stopping on random noise. Instead, pick the weakest funnel step (the 60% who leave before the proof section points to the headline), change only the headline, set the visitor count or duration in advance (whole weeks), and judge the result by completed sign-ups.
Exercise
Why should the conversion event be "reached the sign-up confirmation page" rather than "clicked the CTA"?
Show answer
A click is only a step toward the goal. Visitors can click and then abandon the form, so counting clicks overstates success and can reward changes that attract clicks without producing sign-ups.