Sub topic 15
Measuring and Iterating
This chapter assumes you have read the earlier chapters on tiers, the comparison table, the billing toggle, and ethical pricing. You should also know basic HTML and JavaScript, and what a conversion rate is. Here you will learn how to tell whether a pricing page works and how to change it without fooling yourself.
Start with a question, not a dashboard
A pricing page has one job: help the right visitor pick the right plan and start. Measurement checks whether it does that. Before you collect anything, write down what you want to learn. Good questions are specific:
- Do visitors reach the comparison table, or do they leave above it?
- Which plan do they choose, and does that match the plan we recommend?
- Do visitors who choose a plan stay as customers?
- Does the annual toggle change which plan people pick?
Each question maps to a metric. A metric you cannot connect to a decision is noise.
The funnel and its metrics
A pricing page sits in the middle of a funnel. Visitors arrive, look at plans, click a call to action (CTA), and then complete signup or checkout. Measure each step.
The main metrics are:
| Metric | How to compute it | What it tells you |
|---|---|---|
| Pricing page reach | Pricing page views divided by visits | Whether people can find pricing |
| Scroll or table-view rate | Views where the table entered the viewport divided by page views | Whether the top of the page invites exploration |
| CTA click-through rate | Plan CTA clicks divided by page views | Whether the page prompts action |
| Plan mix | Share of clicks or signups per plan | Whether tiers are chosen as designed |
| Signup completion rate | Completed signups divided by signups started | Problems after the pricing page |
| Paid conversion | Paying customers divided by visitors | The outcome you care about |
| Retention and refunds | Customers still paying at 30, 90 days; refund count | Whether visitors picked a plan they actually needed |
Click-through rate alone can mislead. A page that hides prices may get more clicks and more refunds. Always pair a front-of-funnel metric with a downstream one such as paid conversion or 90-day retention.
Instrument the page
Add small, consistent events. Name them once and keep the names stable, or your history becomes unreadable. The following code sends events with navigator.sendBeacon, which delivers data reliably even when the visitor leaves the page.
const ENDPOINT = "/analytics/events";
function track(name, props = {}) {
const payload = JSON.stringify({
name,
props,
path: location.pathname,
ts: Date.now(),
});
if (!navigator.sendBeacon(ENDPOINT, payload)) {
fetch(ENDPOINT, { method: "POST", body: payload, keepalive: true });
}
}
// Plan CTA clicks: each CTA carries data-plan and data-period.
document.querySelectorAll("[data-plan]").forEach((cta) => {
cta.addEventListener("click", () => {
track("plan_cta_click", {
plan: cta.dataset.plan,
period: cta.dataset.period || "monthly",
});
});
});
// Table seen: fire once when the comparison table enters the viewport.
const table = document.querySelector(".plans");
if (table) {
const observer = new IntersectionObserver((entries) => {
if (entries.some((e) => e.isIntersecting)) {
track("table_viewed");
observer.disconnect();
}
});
observer.observe(table);
}
// Billing toggle usage.
const toggle = document.querySelector("#billing-toggle");
if (toggle) {
toggle.addEventListener("click", () => {
track("billing_toggle", {
annual: toggle.getAttribute("aria-pressed") === "true",
});
});
}Note that the toggle handler from the earlier chapter updates aria-pressed in its own listener. Listeners run in the order they were added, so register the tracking listener after it, as above, or the event will report the old state.
You must also respect privacy. Collect events only where the visitor has consented if the law in your region requires it, send no personal data in event properties, and document what you collect.
Quantitative data tells you what, qualitative data tells you why
Numbers show where visitors stop. They rarely show the reason. Add at least one qualitative source:
- Session recordings and heatmaps. Look for repeated hovering on a feature label, rage clicks on a disabled button, or horizontal scrolling that never reaches the Business column on mobile.
- Short exit surveys. One question, such as "What stopped you from choosing a plan today?" gives answers you would not guess.
- Sales and support conversations. Recurring questions ("Does Team include SSO?") point to missing information in the table or the FAQ.
- Usability tests. Ask five people to pick a plan for a described scenario and watch. Five sessions find most serious problems.
Treat these as hypotheses. One surveyed visitor complaining about price is an anecdote; thirty saying they cannot tell Team from Business is a finding.
Run A/B tests that can be trusted
An A/B test shows version A to half the visitors and version B to the other half, then compares an outcome. It is the right tool for choosing between two specific designs. It is the wrong tool when traffic is low or the change is tiny.
Follow these rules.
- Write a hypothesis. For example: "Moving the annual toggle above the table will raise annual signups, because visitors currently miss it."
- Choose one primary metric before you start, such as paid conversion, and a guardrail metric, such as refund rate, that must not get worse.
- Estimate the sample size first. The smaller the effect you want to detect, the more visitors you need. A common pricing-page conversion of 3% with a goal of detecting a lift to 3.6% needs roughly 14,000 visitors per variant at standard settings (95% confidence, 80% power). Many small sites cannot reach that in a reasonable time.
- Run for whole weeks. Behavior differs between weekdays and weekends, and between pay cycles. Run for at least one full business cycle, usually two weeks.
- Do not stop early. Checking daily and stopping when the result looks significant inflates false positives. Decide the stopping point in advance.
- Assign visitors consistently. A returning visitor should always see the same variant, or you pollute both groups.
A stable assignment can be done by hashing a visitor ID:
// Deterministic 50/50 assignment from a stable visitor ID.
function hash(str) {
let h = 2166136261;
for (let i = 0; i < str.length; i++) {
h ^= str.charCodeAt(i);
h = Math.imul(h, 16777619);
}
return h >>> 0;
}
function variantFor(visitorId, experimentName) {
return hash(`${experimentName}:${visitorId}`) % 2 === 0 ? "A" : "B";
}
console.log(variantFor("visitor-123", "toggle-position"));Including the experiment name in the hash keeps assignments independent across experiments.
Test pricing itself with care
Testing different prices on different visitors raises two problems. Visitors compare notes, and someone who finds out they paid more feels cheated. In many places, showing different prices to different people can also create legal or reputational risk. Prefer testing presentation (layout, copy, tier names, the highlighted plan) over testing the amount for the same product. When you do test price levels, do it on new customers only, keep the test short, and consider talking to customers instead, for example by asking what price would feel too high or too cheap.
Common errors
- Declaring a winner from a small number. Ten versus fourteen signups is not evidence.
- Optimizing the wrong metric. A variant that doubles clicks on the free plan may lower revenue.
- Ignoring segments. Mobile and desktop visitors, or new and returning visitors, can respond in opposite directions, and the average hides it. Check segments, but treat segment results as leads to retest, since slicing many ways produces false positives.
- Changing several things at once. If you change the headline, the highlight, and the prices together, you cannot say which one mattered. Use a multivariate test only with very large traffic.
- Forgetting novelty effects. A new design can win in week one simply because it is new.
- Skipping accessibility checks in variants. A variant with a color-only highlight may fail contrast or screen reader checks. Test each variant with a keyboard and a screen reader before launch.
- Letting tests ship dark patterns. A variant that wins by hiding a fee or pre-selecting the costly plan fails the ethics criteria from the previous chapter, even if the numbers rise. Add refund rate and support complaints as guardrails to catch this.
Build an iteration loop
Treat the pricing page as a product with a steady cycle:
- Review the funnel and qualitative notes each month.
- List the biggest drop-off or the most repeated confusion.
- Write a hypothesis and pick the smallest change that tests it.
- Run the test or, with low traffic, a before-and-after comparison, and note its weaker evidence.
- Record the result, including failures, in a shared log.
- Ship the winner, then return to step 1.
With low traffic, an honest before-and-after comparison, plus interviews, beats an underpowered A/B test. State clearly that other factors (seasonality, a marketing campaign) may have moved the numbers.
Keep a changelog with the date, the change, the hypothesis, and the result. It stops the team from repeating failed ideas and explains odd metric shifts months later.
Exercise
Your pricing page gets about 2,000 visitors a month with a 3% paid conversion. A teammate proposes an A/B test of a new table layout and wants to declare a winner after one week if variant B leads. Name two problems with this plan and propose a better approach.
Show answer
First, the sample is too small: at 2,000 visitors a month, each variant gets about 1,000 visitors and roughly 30 conversions, so only very large effects could be detected, and a one-week lead is likely noise. Second, stopping once B leads is early stopping, and it inflates false positives; a single week also misses weekday and weekend differences. A better approach is to skip the A/B test, make the change, and compare several weeks before and after while noting outside factors, and to back it with usability tests and session recordings. Track a guardrail such as refund rate and retention alongside conversion.
Exercise
Which metric pairing is better for judging a variant that makes the free plan CTA more prominent: CTA click-through rate alone, or paid conversion with 90-day retention as a guardrail? Explain.
Show answer
Paid conversion with 90-day retention. A more prominent free CTA will almost certainly raise click-through rate, but that does not show more customers pay. Paid conversion measures the real outcome, and retention checks that the visitors who did convert chose a plan that fits them.