analytics

An ordered funnel

Steps are counted IN ORDER: step N must happen after step N−1. Step values are always bound parameters — only the number and type of steps shape the generated SQL.

get/api/funnel

Request

  • Base URL: https://app.vitrus.dev/app
  • URL: https://app.vitrus.dev/app/api/funnel
  • Auth: one of:
    • API key in cookie vitrus_session
    • HTTP bearer

Query parameters

sitestring required

Site id. Resolved against your access before it reaches any query; a site you cannot read answers 404, byte-identical to one that does not exist.

daysinteger

Window length in days.

stepsstring

JSON array, e.g. [{"type":"page","value":"/pricing"},{"type":"event","value":"signup"}]

Response

Funnel, the generated SQL and its parameters.

Changes

No recorded changes to this operation across all 1 revision of this API.