Sub topic 5
Getting the right visitors and measuring conversion
A landing-page test answers one question: of the people who should want this, how many act on the promise? The answer is only as good as the visitors you send and the way you count them. This chapter covers how to choose traffic sources, tag them, define conversion, and compute a rate you can compare with a threshold written in advance.
Prerequisites. You know what a customer segment is, you have seen a signup form, and you are comfortable with percentages and ratios. You have already written a hypothesis with a success threshold (the earlier chapter on hypotheses). This chapter assumes that threshold exists.
Why the visitors matter more than the page
A landing page tests demand from a specific group of people. If the wrong people arrive, a high conversion rate proves nothing and a low one may prove nothing either.
Consider two cases:
- You sell scheduling software to dental clinics. You send 400 visitors from a general-interest tech newsletter. Few of them run clinics. A 1% conversion rate says little about clinics.
- You send 400 visitors who clicked an ad aimed at "dental practice manager". A 1% rate here is a real warning.
So the first design decision is not the headline or the button colour. It is: who is the segment, and where do those people already spend attention?
Choosing traffic sources
Each source has a different cost, speed, and bias. Use the table to compare them.
| Source | Cost | Speed | Main bias |
|---|---|---|---|
| Paid search ads | Money per click | Hours | Reaches people already searching for a solution, so intent is high |
| Paid social ads | Money per click | Hours | Targeting is broad, and curiosity clicks are common |
| Niche newsletter or forum post | Low, often free | Days | Audience is self-selected and may be friendly to you |
| Direct outreach (email, LinkedIn) | Your time | Days | Recipients may reply to be polite |
| Friends, family, your own followers | Free | Immediate | Strongly biased toward saying yes |
Two rules follow from this table.
- Prefer sources where the visitor has not met you. A stranger who signs up gives a cleaner signal than a friend.
- Use more than one source when you can. If the rate is similar across sources, the result is more believable. If one source converts ten times better than the others, you have learned where your segment is, which is also useful.
Match the ad to the promise
The ad, the page headline, and the offer must describe the same thing. If an ad says "free tool" and the page asks for a deposit, people who leave are reacting to the mismatch, not to your idea. Write the ad and the page together, and keep the promise specific: who it is for, what it does, and what the visitor gets for signing up.
Tagging traffic so you know where signups came from
You cannot compare sources unless every signup carries its source. There are two common ways to record it.
- UTM parameters are query-string fields added to a link, such as
?utm_source=newsletter&utm_campaign=a. Analytics tools read them automatically. - A hidden form field copies the source into the signup itself, so it survives even if analytics are blocked.
The hidden-field approach is simple. This form records which traffic source each signup came from:
<form action="/signup" method="post">
<label for="email">Email</label>
<input id="email" name="email" type="email" required>
<input type="hidden" name="source" value="newsletter_a">
<button type="submit">Join the waitlist</button>
</form>Serve a different value for each source, for example newsletter_a, search_ad_1, outreach_b. You can do this by giving each source its own URL (/landing?src=search_ad_1) and having the server write that value into the hidden field.
Keep the source names short and fixed before the test starts. If you rename them halfway through, your counts will not add up.
Defining conversion
A conversion is the action you decided counts as success. A conversion rate is conversions divided by visitors, as a percentage.
The hard part is choosing the action. Actions differ in how much commitment they show:
| Action | Commitment | What it tells you |
|---|---|---|
| Page view | None | Your ad worked, nothing else |
| Click on a "Learn more" button | Very low | Curiosity |
| Email signup for a waitlist | Low | Mild interest |
| Email plus a short question about their problem | Medium | Interest from people who will spend a minute |
| Pre-order or deposit | High | Willingness to pay |
| Booking a call | High | Interest strong enough to give you time |
Pick the action that matches the assumption you are testing. If your riskiest assumption is "people will pay", an email signup is a weak test, because email is free. A pre-order or a clear price on the page tests it better. If the assumption is "people have this problem and want to hear about a fix", a waitlist signup is reasonable.
State the definition in one sentence before you start: "A conversion is a unique visitor who submits a valid email address on the page." Then do not change it.
Count unique visitors, not page loads
Divide by unique visitors, not total page loads. One person who reloads the page ten times is one visitor. Likewise, count one signup per email address. Remove duplicates and obvious junk (such as [email protected]) before you compute the rate, and write down the rule you used.
Separate your own traffic
Exclude your own visits and your teammates' visits. If you test the page ten times, that is ten extra visitors with zero signups, and it pulls the rate down.
The funnel and where people drop out
Conversion is the end of a short sequence. Looking at each step shows what to fix.
Each drop-off has a different cause and a different remedy.
- Many impressions, few clicks: the ad is weak or aimed at the wrong group.
- Many clicks, few page visits: the page loads slowly, or visitors close it before it renders.
- Many visits, few form submissions: the promise is unclear, the price is wrong, or the segment does not care.
The test of your hypothesis uses the overall rate from unique visitors to signups. The funnel steps help you decide what to change in the next round. Change one thing at a time so you know what caused a difference.
Computing the rate with an uncertainty range
A single percentage hides how much luck is involved. If 18 of 400 visitors sign up, the rate is 4.5%. With a different 400 visitors you might see 3% or 6%. A confidence interval gives a range that is likely to contain the true rate.
The Wilson interval is a good choice for small samples and low rates, where the simpler textbook formula can give impossible results such as a negative lower bound.
import math
def wilson_interval(successes, n, z=1.96):
if n == 0:
return (0.0, 0.0)
p = successes / n
denom = 1 + z**2 / n
centre = (p + z**2 / (2 * n)) / denom
margin = z * math.sqrt(p * (1 - p) / n + z**2 / (4 * n**2)) / denom
return (centre - margin, centre + margin)
low, high = wilson_interval(18, 400)
print(f"conversion 4.5%, 95% interval {low:.1%} to {high:.1%}")Running this prints an interval of roughly 2.9% to 7.0%. Here z=1.96 selects a 95% interval.
Compare the interval with your threshold
Suppose your threshold, set before the test, was "at least 5% of targeted visitors sign up". The observed rate is 4.5%, which is below 5%. But the interval runs from about 2.9% to 7.0%, and 5% sits inside it. The data cannot separate "below threshold" from "above threshold".
Use a decision rule written in advance:
| Where the interval falls | Reading | Action |
|---|---|---|
| Entire interval above the threshold | Clear pass | Move to the next experiment |
| Entire interval below the threshold | Clear fail | Change the segment, promise, or idea |
| Threshold inside the interval | Inconclusive | Collect more visitors, or accept the risk and say so |
An inconclusive result is a real outcome. It means the test was too small for the question. More visitors narrow the interval. Roughly, to halve the width of the interval you need four times as many visitors.
Per-source results
Once each signup has a source, compute the rate for each source separately. You can pool them for the overall result, but only after you check that the sources are not wildly different.
import math
def wilson_interval(successes, n, z=1.96):
if n == 0:
return (0.0, 0.0)
p = successes / n
denom = 1 + z**2 / n
centre = (p + z**2 / (2 * n)) / denom
margin = z * math.sqrt(p * (1 - p) / n + z**2 / (4 * n**2)) / denom
return (centre - margin, centre + margin)
results = {
"search_ad_1": (11, 150),
"newsletter_a": (5, 200),
"outreach_b": (2, 50),
}
for source, (signups, visitors) in results.items():
low, high = wilson_interval(signups, visitors)
print(f"{source}: {signups}/{visitors} = {signups / visitors:.1%}, 95% interval {low:.1%} to {high:.1%}")
total_s = sum(s for s, _ in results.values())
total_v = sum(v for _, v in results.values())
low, high = wilson_interval(total_s, total_v)
print(f"all sources: {total_s}/{total_v} = {total_s / total_v:.1%}, 95% interval {low:.1%} to {high:.1%}")Read the output with care. The intervals for small sources, such as the 50 visitors from outreach, are wide. Do not conclude that one source is better than another unless their intervals barely overlap.
Common errors in this step
- Counting clicks as conversions. A click on the ad is not a signup. Use the action you defined.
- Changing the definition after seeing data. If the rate disappoints and you switch from "signup" to "any click", you are no longer testing your hypothesis.
- Stopping the moment the rate looks good. Checking results every hour and stopping on a high reading inflates false positives. Fix the visitor count (for example, 400) in advance and stop there.
- Trusting one source. A single newsletter can be an unusual audience. Try at least two sources.
- Ignoring bots and junk. Add a required field check, remove duplicate emails, and look at a sample of signups by eye.
- Mixing paid and friendly traffic. Report friends and family separately, or leave them out.
A worked plan
Here is a compact plan for a test of a tool that helps small clinics send appointment reminders.
- Segment: practice managers at clinics with one to five staff.
- Threshold (set before): at least 5% of unique targeted visitors join the waitlist.
- Sources: a search ad on "appointment reminder software for clinics" and a post in a practice-manager forum, each with its own
sourcevalue. - Conversion: a unique visitor who submits a valid, non-duplicate work email.
- Sample: stop at 400 unique visitors in total, or after 14 days, whichever comes first. Write this down.
- Exclusions: your own visits, duplicates, and test addresses.
- Report: signups, visitors, rate, and 95% interval for each source and for the total, compared with the threshold using the decision table above.
Exercises
Exercise
A landing page gets 250 unique visitors and 20 valid signups. Your threshold, set in advance, was 6%. Compute the rate, and say whether the result is a pass, fail, or inconclusive if the 95% Wilson interval is 5.2% to 12.0%.
Show answer
The rate is 20 / 250 = 8.0%. The threshold of 6% lies inside the interval 5.2% to 12.0%, so the result is inconclusive. The observed rate is above the threshold, but the data cannot rule out a true rate below 6%. Collect more visitors before deciding.
Exercise
You test a tool for freelance accountants. Your results come from two places: 60 visitors from your personal social media account with 15 signups, and 200 visitors from a paid search ad with 4 signups. Explain why you should not pool these into one rate, and say what you would do next.
Show answer
The personal-network traffic is friendly and likely to sign up out of goodwill (25%), while the paid-search traffic is made of strangers (2%). Pooling them gives a rate (19 of 260, about 7.3%) that hides the weak result from strangers. Report the sources separately, treat the 2% from strangers as the more reliable signal, and run more stranger traffic before judging against the threshold.
Exercise
A teammate says: "After one day we had 12 signups from 100 visitors, which beats our 8% threshold, so let's stop and call it a pass." Give two reasons this is risky.
Show answer
First, the sample size was not fixed in advance, and stopping when the rate first looks good inflates false positives. Second, 100 visitors gives a wide interval, so the true rate may be well below 8%. A third reason is that one day may reflect a single source or an unusual audience. Run to the planned sample and report the interval.