# getFormAnalytics

Conversion funnel for one form over a date range - views, starts, submits, the start/submit/submit-of-started rates (0-1 fractions), median seconds-to-submit, plus a per-day time series. startDate and endDate are ISO YYYY-MM-DD; ranges longer than 90 days are rejected.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "getFormAnalytics", "variables": {...} }`
- Scope: `READ`
- Type: query
- Idempotency: a read; rejects `Idempotency-Key`
- Rate-limited: yes

## Variables

- `formId`: `ID!` (required)
- `startDate`: `String!` (required)
- `endDate`: `String!` (required)

## Response (data, an example)

```json
{
  "embedFormQuery": {
    "analyticsFunnel": {
      "funnel": {
        "views": 0,
        "starts": 0,
        "submits": 0,
        "startRate": 0,
        "submitRate": 0,
        "submitRateOfStarted": 0,
        "p50SecondsToSubmit": 0
      },
      "funnelDaily": [
        {
          "viewDate": "…",
          "views": 0,
          "starts": 0,
          "submits": 0
        }
      ]
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operationId": "getFormAnalytics",
    "variables": {
      "formId": "<formId>",
      "startDate": "<String>",
      "endDate": "<String>"
    }
  }'
```
