Saasco logoSaasco logo
Saasco logoSaasco logo

Introduction

Quick StartWhat is Saasco?

Analytics

postGet Funnel StepspostGet Funnel Steps By Day

CRM

Email Marketing

Knowledge

Support

Projects

Funnels

Get Funnel Steps

Runs a sequential funnel over the named events and returns the number of users reaching each step. Order is significant: a user counts at step N only if they fired steps 1 through N in the given order within the window. Users are counted by anonymous ID, so the same person on two devices counts twice.

POST
/projects/{projectId}/analytics/funnel-steps

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project to analyse.

Request Body

application/json

dateFromrequiredstring

Start of the window as an ISO 8601 timestamp.

dateTorequiredstring

End of the window as an ISO 8601 timestamp.

eventNamesrequiredarray<string>

Ordered list of event action names forming the funnel. Order matters: a user counts at step N only if they fired steps 1..N in this sequence.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://www.saasco.com/api/v2/projects/string/analytics/funnel-steps" \  -H "Content-Type: application/json" \  -d '{    "dateFrom": "string",    "dateTo": "string",    "eventNames": [      "string"    ]  }'
{
  "meta": [
    {
      "name": "string",
      "type": "string"
    }
  ],
  "rows": 0,
  "statistics": {
    "bytes_read": 0,
    "elapsed": 0,
    "rows_read": 0
  },
  "usage": {
    "cost": 0,
    "duration": 0,
    "metricCount": 0
  },
  "data": [
    {
      "count": 0,
      "step": "string"
    }
  ]
}
{
  "code": "BAD_REQUEST",
  "message": "Invalid input data",
  "issues": []
}
{
  "code": "UNAUTHORIZED",
  "message": "Authorization not provided",
  "issues": []
}
{
  "code": "FORBIDDEN",
  "message": "Insufficient access",
  "issues": []
}
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "Internal server error",
  "issues": []
}

Query Sessions

The session-level counterpart to Query Events, grouping visits rather than individual events. Adds session-only metrics (`pageViews`, `bounceRate`, `avgSessionSec`) that cannot be derived from the event stream. Use this for traffic and engagement reporting, and Query Events for anything keyed on a specific action.

Get Funnel Steps By Day

The same sequential funnel as Get Funnel Steps, but broken out per day so you can chart step conversion over time. Returns one row per step per day.