Funnels
Analyze user behavior and optimize conversion flows with funnels.
Funnels in LiveSession enable you to track and analyze the steps users take within your app to reach a desired outcome. Use this feature to:
Identify drop-off points in key workflows.
Measure the performance of your conversion funnels.
Gain actionable insights to improve user engagement and retention.
Overview
Funnels allow you to define a sequence of steps that represent a process in your application, such as completing a purchase
or signing up
.
These sequences help you understand user behavior at each stage and where users might abandon the process.
With the LiveSession API, you can programmatically define, query, and analyze funnels to optimize user journeys.
Compute
Thanks to compute you can analyze user behavior and conversion rates. Use the following API request to compute a funnel:
1 curl https://api.livesession.io/v1/compute/funnel \\2 -X POST \\3 -H "Content-Type: application/json" \\4 -H "Authorization: Bearer $LIVESESSION_PAT" \\5 -d '{6 "website_id": "YOUR_WEBSITE_ID",7 "date_range": {8 "from": "2024-12-01",9 "to": "2024-12-07"10 },11 "steps": [12 {13 "filters": {14 "must": [15 {16 "name": "event.location.",17 "group": "url",18 "data": {19 "string": {20 "operator": "eq",21 "values": [22 "https://example.com/signup"23 ]24 }25 }26 }27 ]28 }29 },30 {31 "filters": {32 "must": [33 {34 "name": "event.custom_name",35 "data": {36 "string": {37 "operator": "eq",38 "values": [39 "Signup Form: filled"40 ]41 }42 }43 }44 ]45 }46 },47 {48 "filters": {49 "must": [50 {51 "name": "event.location.",52 "group": "url",53 "data": {54 "string": {55 "operator": "eq",56 "values": [57 "https://example.com/signup/completed"58 ]59 }60 }61 }62 ]63 }64 }65 ]66 }'