"Best analytics tool I've used in 14 years"

Funnels

Use these endpoints to manage conversion funnel definitions. To query results for a funnel, use funnel analytics.
Funnels are saved configurations: a name plus ordered steps. Each step can match a pageview or a goal. Once created, the same funnel can be viewed in the dashboard, through funnel analytics, or from the CLI.
Base path: https://datafa.st/api/v1/admin
EndpointMethodPathPermissionPurpose
List funnelsGET/websites/{websiteId}/funnelsfunnels:readList active funnels
Create funnelPOST/websites/{websiteId}/funnelsfunnels:writeCreate a funnel
Update funnelPUT/websites/{websiteId}/funnels/{funnelId}funnels:writeUpdate a funnel
Delete funnelDELETE/websites/{websiteId}/funnels/{funnelId}funnels:writeSoft-delete a funnel

Create a funnel

curl -X POST "https://datafa.st/api/v1/admin/websites/YOUR_WEBSITE_ID/funnels" \
  -H "Authorization: Bearer dft_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Signup funnel",
    "steps": [
      { "name": "Landing page", "type": "pageview", "url": "/" },
      { "name": "Signup page", "type": "pageview", "url": "/signup" },
      { "name": "Signed up", "type": "goal", "goalName": "signup" }
    ]
  }'
Funnels need 2 to 8 steps. A step can be a pageview with a url, or a goal with a goalName.

✍️ Something missing? Suggest features.

🤖 AI agent or LLM? Read this page as markdown

Create a funnel
curl -X POST "https://datafa.st/api/v1/admin/websites/YOUR_WEBSITE_ID/funnels" \
  -H "Authorization: Bearer dft_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Signup funnel",
    "steps": [
      { "name": "Landing page", "type": "pageview", "url": "/" },
      { "name": "Signup page", "type": "pageview", "url": "/signup" },
      { "name": "Signed up", "type": "goal", "goalName": "signup" }
    ]
  }'
Success response
{
  "status": "success",
  "data": [
    {
      "id": "665f0b3c4d2e1a0012345678",
      "name": "Signup funnel",
      "isActive": true,
      "steps": [
        { "name": "Landing page", "type": "pageview", "url": "/" },
        { "name": "Signed up", "type": "goal", "goalName": "signup" }
      ]
    }
  ]
}