Use casesUse case
Quiz funnel optimization: every question learns from the sale
A quiz funnel is a chain of small decisions that ends in a purchase. Zigbongo tunes all of them at once and credits each with what the quiz earned, not with how many people clicked on.
What it decides
A quiz funnel has many decision points, places where your code asks Zigbongo to choose, and each is a choice between versions you've written:
- Which wording of a question: plain, with examples, with pictures.
- Whether to ask it at all: optional questions shorten the quiz for some people and qualify others.
- Where an answer leads: your routing, such as beginners to a motivation question and everyone else straight on.
- Which result page: the plan first, a progress chart first, testimonials first.
The quiz's copy is yours. Zigbongo picks among the versions you send and never writes a question.
Every step learns from the sale
Testing one question at a time with A/B tests means waiting for each test to end before the next starts, and judging each by the click on the next screen. Here every decision in a session, one visitor's run through the quiz, is credited with the session's outcome: the purchase at the end. A question wording that keeps people clicking but puts them off buying loses, and a longer quiz that sells more wins, even though fewer people finish it.
Report the order value per session when the customer pays. Many pay at the end of the quiz, and some come back after a reminder e-mail; a seven-day attribution window counts those too. A longer window counts more late buyers, but each session then waits longer before it counts in the report.
Run it as a registered flow
A quiz is done in one sitting and its routing depends on answers, which is what registered flows are for. You declare the questions, their versions and the routing; Zigbongo checks the quiz can't loop or lead nowhere, routes each step and knows every path from the first day. If a call fails, the SDK follows your definition's defaults to the end, so the quiz always finishes.
import { Zigbongo } from "@zigbongo/sdk";
const zb = new Zigbongo({ apiKey: process.env.ZIGBONGO_KEY, baseUrl: "https://zigbongo.com" });
// Once, at module scope: your quiz as it runs today, each default marked
const quiz = zb.flow({
key: "language-quiz",
objective: { direction: "maximize", window: "P7D" },
start: "q_level",
nodes: [
{ key: "q_level", type: "variant", options: [{ key: "plain", default: true }, { key: "self_test" }],
next: { byAnswer: { beginner: "q_motivation" }, else: "q_goal" } },
{ key: "q_motivation", type: "variant", optional: { default: "include" },
options: [{ key: "plain", default: true }, { key: "story" }], next: "q_goal" },
{ key: "q_goal", type: "variant", options: [{ key: "plain", default: true }, { key: "examples" }], next: "result" },
{ key: "result", type: "variant", options: [{ key: "plan_first", default: true }, { key: "chart_first" }], next: null },
],
});
// First question
const run = await quiz.start(visitorId, { inputs: { source: utmSource, device } });
req.session.quiz = run.state;
render(run.step); // run.step.node is the question, run.step.option its version
// Each answer: route by it, and keep it as context for the steps after
const again = quiz.resume(req.session.quiz);
const step = await again.next({
result: { answer: req.body.answer },
inputs: { [again.step.node]: req.body.answer },
});
req.session.quiz = again.state;
step === null ? showCheckout() : render(step);
// When they pay
await quiz.resume(req.session.quiz).outcome(order.total, String(order.id));
A visitor who stops answering for 30 minutes counts as having left at their last question, which the dashboard shows as drop-off at that question. PHP has the same calls; see the PHP quickstart.
Answers as context
Before the first question, all Zigbongo knows is what you send with the start: traffic source, campaign, device. That is the only context for the first decision. After that, an answer helps choose the later steps only if you send it as an input, as the sample does. An answer you report only as the step's result (result) decides where the quiz goes next, but Zigbongo doesn't learn from it.
Quizzes often ask personal things. Our terms ask you not to send special categories of personal data, such as health, religion or ethnic origin, nor inputs that identify a person. If a question touches on those, keep its answer out of what you send, inputs and results alike. When the routing depends on such an answer, run the quiz step by step, so your own code routes it and Zigbongo only sees the versions it chooses between. Inputs and answers are forgotten after the flow's retention period, 90 days unless you set another. See inputs.
What to expect
In simulation, a five-step quiz found its best version after about 20,000 sessions: the median of 100 simulated runs, in a scenario where the best version earns 44% more than the default. Treat that as a reference point, not a promise. Fewer versions per question and bigger differences between them settle sooner; personalizing by source or by answers needs more traffic.
5% of visitors keep your current quiz at every step. The report compares revenue per session between them and everyone else, with a 95% interval that stays valid however often you check it, starting once each side has 20 sessions with a purchase. See holdout and lift, and bandits compared with A/B testing for why traffic moves before a test would end.
What it costs
A five-question quiz is one session, not five. The first 10,000 each month are free, then each 1,000 costs €4, excluding VAT; the receipt on the pricing page prices a month at your volume. Sessions in a test environment are free. See pricing.
How it works covers the learning itself. Quizzes often end in a paywall, and sometimes a trial: see paywalls and pricing and trial length.