---
title: "Api Analytics Funnel"
method: POST
path: "/api/analytics/funnel"
tags: ["Analytics"]
---

# Api Analytics Funnel

`POST /api/analytics/funnel`

## Request

- Base URL: `https://www.oxfordledge.com` (the document declares no server; this is the origin it was published from)
- URL: `https://www.oxfordledge.com/api/analytics/funnel`
- Auth: none declared

Funnel analytics -- CSRF exempt (sendBeacon compatible).

## Response `200`

Successful Response

- AnalyticsAckResponse: Wire shape for POST /api/analytics/event + /api/analytics/funnel. Both endpoints are sendBeacon-compatible (CSRF exempt, no auth) and return a fixed `{ok, recorded}` envelope after enqueuing events. The frontend treats `recorded` as informational only — no UI surface depends on the exact value.
  - `ok` boolean, required: True if the request body parsed; even when 0 events recorded.
  - `recorded` integer, required: Count of events successfully written to the analytics store.
  - `error` string, nullable: Set on the JSON-parse-failure branch (status 400). Absent on success.

---

[API](https://skmtc.dev/oxfordledge/apis/oxford-ledge-api.md) · [All operations](https://skmtc.dev/oxfordledge/apis/oxford-ledge-api/llms.txt) · [OpenAPI document](https://skmtc.dev/oxfordledge/apis/oxford-ledge-api/revisions/e832a1260f0b?raw)
