Context for funnel definition CRUD and analysis.
Summary
Functions
Analyzes a funnel for the given time window.
Archives a funnel (soft delete).
Creates a funnel definition for a workspace.
Gets a funnel by ID.
Gets a funnel by ID, raising if not found.
Gets a funnel by ID scoped to a workspace. Raises if not found.
Lists non-archived funnels for a workspace, ordered by inserted_at desc.
Updates a non-archived funnel.
Functions
Analyzes a funnel for the given time window.
Returns {:ok, result} with per-step counts, conversion rates, and median time,
or {:error, reason} when the query fails.
Options
:window_start- start of analysis window (required):window_end- end of analysis window (required):cohort_source_filter- optional source filter applied to step 1
Archives a funnel (soft delete).
Creates a funnel definition for a workspace.
Gets a funnel by ID.
Gets a funnel by ID, raising if not found.
Gets a funnel by ID scoped to a workspace. Raises if not found.
Lists non-archived funnels for a workspace, ordered by inserted_at desc.
Updates a non-archived funnel.