Skip to content

Use casesUse case

Upsell and cross-sell optimization, at checkout and after

An upsell earns money when it's taken and costs money when it puts someone off the order. Zigbongo learns which offer, if any, raises revenue per customer for each kind of cart.

What it decides

Shops and subscription products usually have three moments for an extra offer:

  • At checkout: the annual plan instead of the monthly one, a larger size, a bundle with something they already have in the cart.
  • After the purchase: a one-click offer on the confirmation page, or the product suggested in the receipt e-mail your server sends.
  • In the product: which upgrade prompt to show a customer who reaches a limit of their plan.

You build each offer and send its key. Zigbongo never invents an offer or sets its price.

Let it choose "no offer"

The upsell that gets taken most isn't always the one that earns most, and any offer can cost you the main sale: a busier checkout, a moment of doubt, a closed tab. Include none as an option, and make it the default if you show nothing today.

Every decision in a session, one customer's visit from cart to confirmation, is credited with the session's outcome: the order's revenue you report. If an offer makes people abandon their order, its sessions bring in less, even when some people take it, and traffic moves away from it. This is what separates upsell optimization by revenue from counting take rates.

One session from cart to confirmation

The checkout offer and the post-purchase offer are two decision points, places where your code asks Zigbongo to choose, in one session, so each learns from the whole order, including what the other added.

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

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

// Checkout page
const s = zb.session("checkout", String(customer.id));
const offer = await s.decide("checkout_offer", ["none", "annual", "bundle"], "none", {
  inputs: {
    cartValue: cart.total,           // a number: Zigbongo bins it
    category: cart.mainCategory,     // a handful of values, not product ids
    returning: customer.orderCount > 0,
  },
});
cart.zbSession = s.sessionId;
renderCheckout(cart, offer.option);

// Confirmation page: a one-click offer in the same session
const after = zb.session("checkout", String(customer.id), { sessionId: cart.zbSession });
const extra = await after.decide("post_purchase", ["none", "accessory", "warranty"], "none");
renderConfirmation(order, extra.option);

// Report each payment with its own id: a session's outcomes add up
await after.outcome(order.total, String(order.id));
// ...and later, if they take the one-click offer
await after.outcome(extraOrder.total, String(extraOrder.id));

Checkout is where speed matters most. Each decide waits at most 150 ms; on a timeout or an error it returns none, the default you passed, and reports the fallback so it isn't learned from. On a serverless platform, call await zb.flush() before the function returns, so that report goes out. See fallbacks and timeouts.

Revenue or margin

Report the order's revenue, or its margin if your offers differ in it: an accessory with a 60% margin and a bundle with 15% shouldn't count the same. The outcome is any number, and Zigbongo doesn't need to know what it means.

Order values are lopsided: a few very large orders can outweigh hundreds of ordinary ones. Zigbongo ranks each session's value against the flow's recent values before learning from it, so one exceptional basket doesn't decide the winner. The report still shows the money: revenue per session, against the holdout, the 5% of customers who always see your default choices.

Context worth sending

The right offer depends on the cart. Someone buying a camera may take a memory card; someone buying a memory card is unlikely to add a camera. This is where choosing by context earns its keep over one winner for everyone.

  • Cart value, as a number. Zigbongo learns ten bands from the values it sees, and values beyond the outer bands fall into them, so you don't bucket it yourself.
  • Main category, as a few readable values. A text input gets a value of its own once that value has been seen 30 times; rarer ones are pooled as other.
  • New or returning, platform and country.

Leave out product ids and customer ids. An input with more than 50 distinct values has its values mixed into shared groups and is never shown in reports, an identifier teaches nothing that generalizes, and our terms ask you not to send inputs that identify a person.

Send context from the first day. A decision point that first learns without inputs keeps learning one answer for everyone. See inputs.

What to expect

Checkout gives fast feedback: the outcome arrives minutes after the decision, so the default one-day attribution window fits and nothing waits for weeks. Learning starts with the first order. A clear result takes volume, and learning per kind of cart takes more of it than learning one offer for all.

5% of customers keep your current checkout, with no offer if none is your default. Their revenue per session is the baseline, and the lift comes with a 95% interval, valid however often you check it. More in holdout and lift.

Guardrails

  • At most 150 ms per decision, and on any failure the customer sees your default.
  • Only your offers, at the prices you set. Their wording and how you present them must comply with consumer law, as our terms say.
  • A kill switch. Pause the checkout flow and every customer gets your default within seconds.

A checkout with two offers is one session; pricing has the details, and how it works the learning. If your extras are a list of add-ons or ready-made bundles rather than one offer, see add-ons and bundles. For the plan and price shown before checkout, see paywalls and pricing.

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