Case study · Product launch · Online education

A quiz that sorts the waitlist before the sales team ever sees it.

For the first Black Friday launch of a Brazilian facial-aesthetics school, I designed and built a 5-question quiz in front of the waitlist. It welcomes the right professionals, turns the wrong audience away politely, and tags every lead as HOT or WARM before it reaches WhatsApp.

The brief

A 72-hour offer, open only to the waitlist.

The school was launching 5 courses for the price of 1, for 72 hours, shared only inside WhatsApp groups. The waitlist page had to fill those groups, but with the right people: licensed health professionals who could actually afford the bundle.

A plain sign-up form would have filled the groups with curious followers and no way to tell a buyer from a browser. The client needed to know, on day one, who to talk to first.

Live demo

Take the quiz. Watch the data on the right.

This is the real quiz, translated. In production every event goes to a database; here it is shown live beside the phone. Nothing you type leaves your browser.

Lead recordIn progress
Field
–
Experience
–
Technique
–
Student
–
Bundle offer
–
Budget
–
Source
direct

Route: waiting for answers

Event streamlive

    The flow

    Easy questions first. Price last. Two kind exits.

    Opening 1 · Field 2 · Experience 3 · Technique 4 · Student? 5 · The offer
    From question 1

    "I'm not in the field" → a confirmation screen → a thank-you exit. No group link.

    Offer · Yes

    Contact form → WhatsApp group. Tagged HOT.

    Offer · No

    Question 6: budget range → a note about the single-course deal after the 72 hours → contact → group. Tagged WARM, with the budget saved.

    Budget · none

    "I can't invest right now" → a warm goodbye that points to free events. No group link.

    Design decisions

    Every question has a job.

    01

    One question per screen

    Each answer is a single tap, with a progress bar. Multi-step forms tend to convert better than one long form, so the easy questions come first and the qualifying ones last.

    02

    The price arrives softly

    The offer screen shows what opens on launch day, the value of the bundle and "Nothing is charged now." It reads as a preview, not a bill.

    03

    It remembers your choice

    Question 5 repeats the technique picked in question 3: "The Lip filler course you picked is included, along with 4 more techniques."

    04

    The wrong audience leaves kindly

    People outside the field, or with no budget, get a respectful exit instead of a dead end, so the groups stay full of buyers and the brand stays generous.

    05

    Same page, two openings

    Visitors from the ads see the dark ad look and the two instructors on the first screen, so the page matches the ad they clicked. Everyone else sees the light version. Questions and scoring are shared.

    06

    A "no" still counts

    Saying no to the bundle opens a budget question. Those leads still join, tagged WARM with their range, and hear about the single-course deal that follows the launch.

    Under the hood

    No quiz builder. A static page and one small server function.

    Browser

    Static HTML, CSS and vanilla JavaScript on Cloudflare Pages. Loads instantly on mobile, no framework, no third-party quiz tool.

    Cloudflare Function

    /api/lead validates every field again on the server, accepts only answers from a fixed list, and decides the lead class itself, so nobody can tag themselves HOT from the browser.

    KV + D1

    Leads are stored in KV, keyed by WhatsApp number so a repeat sign-up updates instead of duplicating. Every funnel step lands in a D1 (SQLite) table with its UTM source.

    Routing + reports

    Ad traffic goes to its own WhatsApp groups, everyone else to the waitlist groups. A small script reports drop-off per question and per source, and exports the leads.

    What gets tracked

    An anonymous session id per visit, never personal data in the event table.

    EventWhen
    visitThe quiz loads
    startThe first button is tapped
    answerEach question, with the option chosen
    offer_yes / offer_noThe decision on the bundle
    blocked_field / blocked_no_budgetOne of the two kind exits
    contact → leadForm shown, then accepted (with the class)
    groupThe WhatsApp group link is opened

    Security, by default

    • No secrets in the code: group links live in environment variables
    • Server-side validation of name, phone, email and consent
    • Only JSON under 2 KB, from the page's own domain
    • Rate limit: 5 sign-ups per IP every 10 minutes
    • Hidden honeypot field to catch bots
    • Input cleaned of control characters and HTML
    • Generic error messages for visitors, details only in server logs
    • Strict headers: HSTS, CSP, X-Frame-Options, nosniff
    • Internal files return 404

    What was delivered

    From interview to live funnel.

    1. ScriptThe questions, exits and offer copy, written from an interview with the client.
    2. ResearchA short study on quiz conversion and lead qualification, checked against the script.
    3. BuildTwo openings, six questions, contact form, server function, storage and routing.
    4. Waitlist pageA matching black-and-gold sign-up page with a countdown, for the existing audience.
    5. ReportingDrop-off per question and per source, plus lead export with each lead's class.

    Want a quiz like this in front of your launch?

    Run the quiz again