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
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
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 like this
Build a 100-Person Icon Array Demographic Infographic in One HTML File
You get a single HTML file that shows a fictional town as 100 SVG person icons, with tabs for commute, age and housing and an interactive legend that highlights each group.
Build a 12-Week Fitness Progress Tracker Infographic in a Single HTML File
Generates a one-page fitness report with bodyweight and lift line charts, personal-record badges, a streak calendar and an instant kg/lb toggle, all from built-in sample data.
Build a Before-and-After Statistics Infographic With Color-Coded Change Arrows
A single HTML infographic comparing two years across nine metrics, showing old and new values, absolute and percent change, and arrows colored by whether up is good.
Build a Budget Allocation Treemap Infographic in a Single HTML File
You get one HTML file that draws a squarified treemap of a city budget, hides labels on small blocks, and shows a details panel when you tap or click any block.
Build a Classroom Grade Distribution Infographic with Histogram and Quartiles
A single HTML file that turns an inline array of class scores into a histogram with mean and median markers, a box plot, stat cards and a plain-language summary.
Build a Company Fact Sheet One-Pager with Animated Stats and a Location Map
You get a single HTML file laid out like an investor or press fact sheet, with animated stat counters, mission, leadership, milestones, an interactive SVG office map and a brand-color theme switch.