Build a Marketing Funnel Drop-Off Infographic in a Single HTML File

You get an interactive funnel infographic with tapered bands, stage-to-stage conversion and drop-off rates, and the biggest leak flagged automatically.

The prompt

Prompt
Act as a senior data-visualization designer and front-end developer. Build "Leakfinder Funnel", a one-page interactive marketing funnel infographic for Brightloop, a fictional email-newsletter app. It traces six stages: Visitors, Started signup, Account created, Activated, Paid, Renewed. Draw each stage as a tapered band. Its top width scales with that stage's count and its bottom width with the next stage's count, so the funnel narrows exactly where people leave. Between every pair of bands, show the percentage who continue, the percentage who drop off and the number of people lost.

Rules:
1. Include two realistic sample datasets (Q2 and Q3) with a toggle. The bands morph between them using CSS clip-path transitions, and the transitions are turned off under prefers-reduced-motion.
2. Automatically find the biggest leak, meaning the largest percentage drop between two consecutive stages. Highlight that gap in coral with a "Biggest leak" badge, and recompute it whenever the data changes.
3. Every band is a focusable button. Click, tap, Enter or the arrow keys select it and update a side panel showing the count, share of visitors, conversion from the previous stage, people lost and one concrete fix idea.
4. Show four summary cards above the funnel: visitors, renewed customers, overall conversion, and the stage pair where the leak happens.
5. Use a navy-to-blue palette on a warm off-white background and a system font stack. White band labels must meet at least 4.5:1 contrast. Below 760px wide, stack the panel under the funnel.
6. Use no external libraries, fonts, images or network calls.

Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.

Example output

One HTML file. Save it and open it in any browser.Open full screen

Example: Leakfinder Funnel, an interactive signup funnel for a fictional newsletter app.

Six tapered bands show visitors narrowing down to renewed customers. Between each pair of bands you see who continues, who drops off and how many people were lost. The worst gap gets a coral Biggest leak badge.

  • Switch between Q2 and Q3 to watch the bands reshape and the leak move to a new stage.
  • Click a band, or use the arrow keys, to see its stats and a fix idea in the side panel.
Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Band widths come straight from the stage counts, so the funnel's shape always tells the truth about where people leave.
  • Defining the leak as the largest percentage drop gives the model one unambiguous rule to compute and highlight.
  • Two built-in datasets and a details panel make the page useful and interactive with no data entry.

Paste the prompt into ChatGPT, Claude or Gemini. Save the returned code as funnel.html and open it in any browser, or view it in the chat's preview or canvas. To chart your own funnel, swap in your stage names and counts.

Common edits

  • Rename the stages and counts to match your own funnel, such as ad clicks, demo booked, proposal and closed-won.
  • Add a third dataset, or change the leak rule to flag the most people lost instead of the highest percentage.

Prompt details

By
Prompts-GPT editors
Published

Did this prompt work?

Keep exploring

More in Infographics