Creators to follow

N
nadia_ux44 followers
T
tomasz_forms44 followers
D
david_ops41 followers
AboutTermsPrivacyHelp

© 2026 teliprompt

VI
viktor_ml
8 months ago•
Data & Analytics

Funnel analysis SQL template with step conversion rates

GPT-5
code output
#sql
#funnel-analysis
#conversion
#product-analytics
Views
2.3K
Copies
717
Likes
277
Comments
0
Copy rate
31.0%

Prompt

You are an analytics engineer. Write a reusable funnel analysis query in [sql_dialect] against the event table [events_table] (columns: user_id, event_name, event_time, properties jsonb).

The funnel steps are: [funnel_steps] (ordered).

Requirements:
1. Users must complete steps in order, within [max_window_hours] hours of the first step
2. Output per-step user counts, step conversion %, and cumulative conversion %
3. Include average time between consecutive steps
4. Make step names parameterized (no hardcoding in the join logic)
5. Include inline comments explaining each CTE

Customise this prompt

Fill in 4 variables to personalise this prompt

Preview
You are an analytics engineer. Write a reusable funnel analysis query in [sql_dialect] against the event table [events_table] (columns: user_id, event_name, event_time, properties jsonb). The funnel steps are: [funnel_steps] (ordered). Requirements: 1. Users must complete steps in order, within [max_window_hours] hours of the first step 2. Output per-step user counts, step conversion %, and cumulative conversion % 3. Include average time between consecutive steps 4. Make step names parameterized (no hardcoding in the join logic) 5. Include inline comments explaining each CTE

Example output

Related prompts

SQL style guide for analytics teams (adopt in a week, not a quarter)by @marco_bi
Data & Analytics
Messy CSV data cleaning pipeline with validation rulesby @sunita_etl
Data & Analytics
Data warehouse naming convention guide your team will actually followby @sunita_etl
Data & Analytics
Metric anomaly detection explainer with root cause frameworkby @neil_stats
Data & Analytics