Optical shop marketing planner - group-buying voucher redemption funnel tool - paste the platform export (sold / redeemed / refunded) plus the store's own visit log, and this single-file tool computes the three-level funnel (bought -> redeemed -> converted in-store) and each voucher's cash P&L (fulfillment cost including frame, lenses, and platform commission), with the planner's own threshold lines printed on the page - low redemption means you sold to people who never come; low conversion means the visitors were never customers; redeemed-cash only, no brand-value accounting
You are a coding agent. Build a single-file
HTML "group-buying voucher funnel review
tool" for an eyewear store's marketing
planner: work out, per voucher, where the
money leaked in the funnel and whether the
redeemed tickets made cash. Runs locally,
no network, no external dependencies.
Scope (design to this; not a campaign
all-evaluator): platform dashboards look
busy - vouchers "sold," counts climbing -
but only two things actually happen at the
store: redemption visits and in-store
purchases. This tool answers exactly one
question per voucher: at which funnel level
did the money leak, and did the redeemed
tickets clear their costs. Impressions,
brand awareness, and future lifetime value
of new customers are NOT counted - print
this boundary on the page; those accounts
live elsewhere.
Inputs (accept pasted platform-export table
text, plus manual entry):
- Per voucher: name, sale price, sold,
redeemed, refunded
- Fulfillment terms: package frame cost,
package lens cost, platform commission
rate [rate F], any other per-voucher
cost (gift items etc.)
- Store visit log: in-store purchase count
for this voucher, average ticket of
those purchases (including upsells:
frame swaps, higher-index upgrades)
- Two judgment lines, planner-set:
redemption line [L1], in-store
conversion line [L2]
Output four things:
1. Three-level funnel table (per voucher):
sold -> redeemed (rate) -> converted
(rate), each level's leak count and
the ticket money it represents;
refunds get their own column, never
mixed into leakage
2. Cash P&L per voucher (redeemed only):
redeemed revenue = redeemed x price x
(1 - rate F); fulfillment cost =
redeemed x package cost; upsell margin
= upsell amount x upsell margin rate.
Formulas and intermediates printed on
the page, recalculating live as inputs
change
3. Judgment card (next to each result, one
per voucher): redemption < L1 -> stamp
"sold to people who never come," fix
direction "rework targeting and voucher
type"; redemption fine but conversion
< L2 -> stamp "the visitors were never
customers," fix direction "rework the
package and the in-store handoff";
both lines passed -> stamp "cash case
holds"
4. Campaign totals: total ticket money,
total fulfillment cost, total upsell
margin, net cash difference
Hard constraints:
- Every formula with its intermediates
printed in the interface - no black
boxes
- Data in localStorage, exportable and
importable as JSON
- One demo voucher preloaded (e.g.,
"exam + frame + 1.56 lens package")
so all four outputs render on open
- Totals and judgment cards printable,
legible in black and white
- No network, no external libraries, no
accounts
You may not:
- Forecast next-period sales or
conversion - the tool reviews what
happened; it does not invent what's
next
- Offer any "impressions value" entry
point - the moment exposure converts
to money, every losing voucher gets
"rescued" by that column
- Connect any platform API or external
data source; everything arrives by
paste or typing
- Use any verdict wording beyond the
three stamps above - no free-form
editorializing on the cards
Why it is written this way
The funnel table prices every level's leak because the most common confusion in voucher reviews is treating "vouchers sold" as the score. A sold voucher has only moved money from the customer's pocket into platform escrow; fulfillment cost begins at redemption and margin at purchase. Eight hundred sold, two hundred redeemed: six hundred vouchers' worth of money sits in escrow (pre-refund), and each of those six hundred was sold to someone who never came. Without splitting by level, the busy sales number talks the planner into relaunching the same voucher.
"Redeemed cash only" with no impressions-value entry point is the tool's most important gate. Voucher economics are forever being rescued by two imaginations - brand exposure and new-customer lifetime value. Both are real; neither can be settled at a review table. Leave the door open a crack and every losing voucher becomes "profitable once you count exposure," and the review loses its power to kill anything. Printing the boundary on the page reminds the planner at every glance: this ledger answers the cash question only; the brand's ledger is kept elsewhere.
Judgment lines belong to the planner, not the tool, as another refusal of "industry-average redemption rates" - normal redemption levels differ enormously by city, voucher type, and targeting, and a built-in "standard line" is a built-in wrong answer. The planner's own lines print on the page, the cards judge against them, and when challenged in the review meeting, the challenged number is the planner's own - which survives questioning far better than any outside benchmark.
Card wording is locked to three stamps to keep the tool (and any model behind it) from bloating "fix directions" into little essays. "Sold to people who never come" points at targeting; "the visitors were never customers" points at package structure and in-store handoff - the two diseases take different medicine, and free-form wording slides straight toward "needs optimization across multiple dimensions," a verdict that points nowhere. Upsell margin enters the P&L as its own line (not just voucher price) because in eyewear the real economics of voucher conversion live in the upgrade - by ticket price alone nearly every voucher loses; add the frame-swap and higher-index margins and it's a different business.
Variables
| Variable | Description |
|---|---|
| Platform commission rate F | The commission the platform takes on each voucher - enter per voucher from the platform's actual dashboard (rates vary by campaign slot); one wrong rate shifts the whole P&L, so this is the first number to verify before anything else |
| Judgment lines L1/L2 | The pass lines for redemption rate and in-store conversion - set by the planner from this store's own campaign history and recalibrated over time; the two lines are the judgment cards' entire basis, and once set they stay fixed across reviews, or every campaign will somehow "pass" |