Sub topic 11
Testing whether a trust signal helps
This chapter covers how to find out whether a testimonial, logo strip, rating, or guarantee changes what visitors do. It assumes you can write basic HTML and CSS, know the common page types (landing, product, pricing), and know that a conversion rate is the share of visitors who complete a goal, such as buying or signing up. You do not need a statistics background. The chapter explains each term as it appears.
Why you need a test
Earlier chapters gave reasons to expect trust signals to help. Those reasons are not evidence that a given signal helps on your page. A guarantee might lift sign-ups, or it might draw attention to refunds and make visitors more cautious. A logo strip might reassure people, or it might push the call to action below the fold. Opinions inside a team do not settle this, and neither does a before-and-after comparison. If you add a rating badge on Monday and sales rise on Tuesday, the cause could be a newsletter, a holiday, or an ad campaign.
An A/B test settles it by splitting live visitors at random into two groups. The control group sees the page as it is. The variant group sees the page with one change. You then compare the conversion rate of each group. Because both groups are on the page at the same time and were assigned by chance, outside events affect both equally. Any difference that remains is more likely to come from your change.
Write a hypothesis first
Before building anything, write down what you expect and why. A usable hypothesis has four parts:
- The change. "Add a three-line testimonial block directly above the pricing table."
- The doubt it addresses. "Visitors on the pricing page worry that setup takes too long."
- The expected effect. "More visitors will click Start your plan."
- The measure. "Click-through rate from pricing to checkout."
Tying the change to a specific doubt keeps you from testing decorations. It also connects to the placement chapter: a signal belongs where the doubt arises, so a test is most informative when the signal answers the doubt that is present at that spot.
Choose metrics
Pick one primary metric before the test starts. This is the number that decides the result. Typical choices are checkout starts, completed purchases, or trial sign-ups. Choose the metric closest to the business outcome that you can still collect enough data on.
Add a few guardrail metrics. These are numbers that should not get worse while you improve the primary one. Examples:
- Page load time, because trust elements add images and scripts.
- Refund or cancellation rate, because a strong guarantee can attract people who later ask for their money back.
- Support tickets, because a claim such as "setup in three days" that is not true creates complaints.
- Bounce rate (visitors who leave after one page), as a rough signal that the page became confusing.
Secondary metrics are fine for exploring, but do not switch the primary metric after you see the results. Picking the best-looking number afterward almost always produces a false win.
Change one thing
If the variant adds a testimonial, a logo strip, and a guarantee all at once, a win tells you that the bundle worked but not which part. A loss is just as unclear, because one element may have helped while another hurt. Test one signal at a time when you can. If traffic is limited and you must bundle, say so and treat the result as a verdict on the bundle only.
Keep everything else identical: the headline, the price, the layout, the button text. Also keep the signal itself honest. A test must use real testimonials, real counts, and real terms, for the reasons given in the authenticity chapter. A variant that wins because of an invented quote has not won anything you can keep.
How the experiment flows
The diagram shows the path of one visitor and where your measurement attaches.
Decide the sample size in advance
A conversion rate measured on a few visitors is noisy. If 4 of 20 visitors convert in one group and 5 of 20 in the other, that difference means almost nothing. You need enough visitors that real differences stand out from chance.
Three inputs set the required sample size:
- Baseline conversion rate. The current rate, for example 3%.
- Minimum detectable effect. The smallest improvement worth caring about, for example a relative lift of 15% (3% to 3.45%).
- Confidence and power. Common defaults are 95% confidence (you accept a 5% chance of a false win) and 80% power (you accept a 20% chance of missing a real effect).
Small baselines and small effects require large samples. Trust signals usually produce modest lifts, so many pages do not get enough traffic to detect them. The function below gives an approximate sample size per group using the standard two-proportion formula.
from math import ceil, sqrt
from statistics import NormalDist
def sample_size_per_group(baseline, relative_lift, alpha=0.05, power=0.80):
"""Approximate visitors needed in each group for a two-sided test."""
p1 = baseline
p2 = baseline * (1 + relative_lift)
p_bar = (p1 + p2) / 2
z_alpha = NormalDist().inv_cdf(1 - alpha / 2)
z_beta = NormalDist().inv_cdf(power)
numerator = (
z_alpha * sqrt(2 * p_bar * (1 - p_bar))
+ z_beta * sqrt(p1 * (1 - p1) + p2 * (1 - p2))
) ** 2
return ceil(numerator / (p2 - p1) ** 2)
if __name__ == "__main__":
n = sample_size_per_group(baseline=0.03, relative_lift=0.15)
print(f"Visitors needed per group: {n}")With a 3% baseline and a 15% relative lift, the result is roughly 24,000 visitors per group. A page with 1,000 visitors a day would need about 48 days to fill both groups. If that is too long, you have three honest options: test a bigger change, test on a page with more traffic, or use a metric with a higher base rate, such as clicks on the main button instead of purchases.
Run the test correctly
Several habits separate a trustworthy result from a misleading one.
- Randomize per visitor, not per page view. Store the assignment in a cookie or a user ID so a returning visitor sees the same version. Otherwise someone sees a guarantee on Monday, none on Tuesday, and both groups are contaminated.
- Run full weeks. Behavior differs between weekdays and weekends. Stop on a whole number of weeks so each day of the week is represented equally.
- Do not stop early because it looks good. Checking the dashboard daily and stopping at the first "significant" result inflates false wins. Decide the sample size or duration first and wait for it.
- Check the split. If you planned 50/50 and see 55/45 over thousands of visitors, something is broken, for example the variant loads slower and some visitors leave before being counted. This is called a sample ratio mismatch, and it means you should not trust the result until you find the cause.
- Avoid overlapping tests. Two experiments on the same page at once can interact, and you cannot separate their effects.
- Watch for flicker. If a script swaps in the variant after the page paints, visitors see the control for a moment. This harms the experience and the data. Prefer server-side rendering of variants, or hide the changed region until the script decides.
Read the results
Most tools report a p-value or a confidence interval. A p-value below 0.05 means that, if the change had no real effect, a difference this large would show up less than 5% of the time. It does not mean there is a 95% chance the variant is better. A confidence interval is more useful, because it gives a range. A result such as "+8% relative lift, 95% interval from -2% to +18%" tells you the variant is probably helpful but that you cannot rule out no effect, or a small loss.
Look at three things together:
- Direction and size. Is the lift large enough to matter once you count the cost of keeping the signal up to date?
- Uncertainty. Does the interval include zero? If so, the test is inconclusive, not a proof that the signal is useless.
- Guardrails. Did the variant raise sign-ups but also raise refunds or slow the page?
The table shows common outcomes and sensible responses.
| Outcome | What it suggests | Reasonable next step |
|---|---|---|
| Clear lift, guardrails stable | The signal answers a real doubt | Ship it and monitor after launch |
| Lift, but refunds or tickets rise | The signal attracts poorly matched buyers or overpromises | Review the claim wording before shipping |
| No clear difference, wide interval | Not enough data to tell | Extend only if the plan allowed it, or test a larger change |
| Clear loss | The signal distracts, slows the page, or looks suspicious | Remove it and review its placement and content |
Common mistakes
- Testing too many variants. Each extra variant needs more traffic and adds chances of a false win.
- Slicing after the fact. Looking at results by device, country, and traffic source until one segment wins is a way of finding noise. Plan segments in advance, and treat unplanned ones as ideas for a new test.
- Ignoring novelty. A new element can draw attention just because it is new. If the lift fades in the second week, the early number overstated the effect.
- Treating one result as permanent. Audiences, prices, and competitors change. A signal that helped last year may need retesting.
- Measuring the wrong thing. A rise in clicks on a "Read reviews" link is not a rise in purchases. Make sure the primary metric reflects the outcome you care about.
When you cannot run an A/B test
Low-traffic sites cannot always reach the sample size they need. Other sources of evidence are weaker but still useful if you label them honestly:
- Moderated usability sessions. Ask five to eight people to complete a task on the page and notice where they hesitate. Watch whether they look at the testimonial or ask where the refund terms are.
- Short surveys. Ask recent buyers or abandoners one question, such as "What nearly stopped you from signing up?" Their answers show which doubts to address.
- Before-and-after comparisons. These are a last resort. Compare equal-length periods, note anything else that changed, and describe the result as a hint, not a measured effect.
- Click and scroll data. Heatmaps show whether visitors reach and interact with the signal. They show attention, not persuasion.
A simple test plan
Use this template for each experiment, filled in before launch.
- State the hypothesis in the four-part form above.
- Name the primary metric and the guardrails.
- Calculate the required sample size and convert it into a number of full weeks.
- Confirm that the variant uses only real, verifiable content.
- Check that the variant meets the accessibility and performance practices from the previous chapter, so that you test the signal and not a broken implementation.
- Run the test without peeking, check the split, and read the interval, not only the p-value.
- Record the result, including inconclusive and negative ones, so the team does not repeat the same test.
Exercise
Your pricing page converts 4% of visitors to checkout and gets 500 visitors a day. You want to test a 30-day money-back guarantee placed next to the button. Name the primary metric, two guardrail metrics, and explain why stopping the test after three days because the variant is ahead is a mistake.
Show answer
The primary metric is the checkout conversion rate (visitors who start checkout divided by visitors to the pricing page). Two guardrails: refund rate, because a guarantee can attract buyers who later return the product, and page load time, because the extra content must not slow the page. Stopping after three days is a mistake because three days is too little data and covers only part of the week, so early differences are mostly noise. Repeatedly checking and stopping at the first apparent win inflates the chance of a false result. Calculate the sample size in advance and run for whole weeks.
Exercise
A test of a logo strip shows a relative lift of +6% with a 95% confidence interval from -4% to +16%. Is the logo strip proven to help? What would you do next?
Show answer
No. The interval includes zero and negative values, so the data are consistent with no effect or with a small loss. The result is inconclusive, not a proof of a benefit. Next steps: check whether the planned sample size was reached, extend the test only if the plan allowed it, or test a stronger change, such as a logo strip near the call to action instead of at the page bottom. Also check the guardrails, such as load time, before deciding.