Skip to content

Use casesUse case

Paywall and pricing A/B testing, judged by revenue

Show each customer the paywall, lead plan or price point that earns the most, chosen from the ones you've built. At first most customers see what they see today, and every gain is measured against a holdout: customers who always see your default choices.

What it decides

A paywall is several choices on one screen. Each can be a decision point, a place where your code asks Zigbongo to choose, and all of them belong to the same session, one customer's visit to the paywall:

  • Which paywall. Two or three designs you've built: a comparison table, a short page, one that leads with reviews.
  • Which plan to lead with. Monthly, annual or lifetime first, or a different plan preselected.
  • Which price point. Price points you've set, sent as options such as low, mid and high.

Zigbongo only chooses among the options you send. It never sets a price: if mid means 12 a month in your currency, that's because your code says so. Send tier names rather than amounts, and map them to a price per currency in your own code. One decision point then works for every market, and your price list stays where it is.

Because every decision point learns at once, you don't test the design first and the price after it. Both learn from the same payments, which a paywall A/B test run one question at a time can't do.

Report revenue, not conversions

A lower price usually converts more people, and can still earn less. If you report only whether someone paid, the option that converts most wins, and that is often the cheapest. Report the amount paid as the outcome, and the comparison weighs how many paid against how much.

For a one-off purchase or a first payment, report it from your payment handler as soon as the charge succeeds, by session (see sessions and outcomes). If the annual plan's value only shows at renewal, report every payment by customer instead and give the flow a longer attribution window, as the trial length page explains.

Ask once, then keep the answer

Each time your code asks, Zigbongo makes a fresh choice. Only whether a customer is in the holdout stays fixed. If someone reloads the paywall and your code asks again, they may see a different price. So ask when the paywall is first shown, store the answer with their checkout, and charge the price they saw. Asking again without the session's id would also start a new session, which counts as another visit.

import { Zigbongo } from "@zigbongo/sdk";

const zb = new Zigbongo({ apiKey: process.env.ZIGBONGO_KEY, baseUrl: "https://zigbongo.com" });

// Your price points. Zigbongo only ever sees the tier keys.
const PRICES = { EUR: { low: 9, mid: 12, high: 15 }, GBP: { low: 8, mid: 10, high: 13 } };

app.get("/upgrade", async (req, res) => {
  if (!req.session.paywall) {
    const s = zb.session("paywall", String(req.user.id)); // ids are strings
    const layout = await s.decide("layout", ["table", "short", "reviews"], "table", {
      inputs: { platform: req.user.platform, country: req.user.country, source: req.user.source },
    });
    const tier = await s.decide("price", ["low", "mid", "high"], "mid");
    req.session.paywall = { sessionId: s.sessionId, layout: layout.option, tier: tier.option };
  }
  const { layout, tier } = req.session.paywall;
  res.render(`paywall-${layout}`, { price: PRICES[req.user.currency][tier] });
});

// In your payment handler, once the charge succeeds
const { sessionId } = req.session.paywall;
await zb.session("paywall", String(req.user.id), { sessionId }).outcome(charge.amount / 100, charge.id);

A decide that gets no answer within 150 ms returns its default (table, mid), so the paywall never waits on Zigbongo.

Context worth sending

Inputs are optional. With none, each decision point learns one best option for everyone. With context, it can learn that one group of customers pays more for annual and another for monthly.

  • Platform (ios, android, web): app store fees and buying habits differ.
  • Country: purchasing power and the local competition differ.
  • Traffic source: someone from a price comparison site and someone from a referral arrive with different intent.

Send them on the first call: inputs add up over the session, so the price decision uses them too. See inputs for how numbers and text are handled.

What to expect

Paywalls see many viewers and fewer payers, and an outcome in money varies more than a click. Learning starts with the first session, but a clear result takes volume, and personalizing by country or source needs more of it than learning one answer for everyone. Old evidence fades over time (a 90-day half-life), so when a price stops working, the learning can follow.

5% of customers keep your default paywall at your default price. The report compares revenue per session between them and everyone else, with a 95% interval that stays valid however often you look. It starts once each side has 20 sessions with a payment, and says "No clear difference yet" until the interval leaves out zero. Details are in holdout and lift.

Guardrails for pricing

Where you personalize a price for consumers on the basis of automated decision-making, EU consumer law requires you to tell them so. Choosing a price point per person with Zigbongo can amount to that. Our terms make the prices and how you present them your responsibility, so check with your counsel before you send price points as options.

  • Your prices, your law. Each option you send must comply with consumer protection, unfair commercial practices and anti-discrimination law. Zigbongo is not for decisions with legal or similarly significant effects on people, such as decisions on credit or insurance.
  • No protected characteristics. Don't use inputs about them to target or exclude people, and don't send inputs that identify a person.
  • See what it learned. The dashboard's "What Zigbongo learned for each group of customers" shows which option wins for which input value, and how many people that rests on. If a rule leans on an input you shouldn't price by, switch that input off for the flow: it takes effect within seconds.
  • A kill switch. Pause the flow and every customer gets your default price within seconds.

Sessions are what you pay for: one paywall visit is one session, however many decisions it makes. The pricing page has the rest, and how it works explains the learning. If your paywall offers a trial, trial length covers the decision after it; for what to offer alongside the plan, see add-ons and bundles.

Let every decision earn its keep.

Start from your defaults and let the holdout prove every gain. A few customers keep seeing what you show today, so you see what Zigbongo adds. 10,000 sessions a month on us.

Start free