Get form analytics
formAnalytics_getGet form analytics: views, submissions, completion rate, bounce rate, and device / browser / country / traffic-source breakdowns. Read-only. Use form_list to find formId first. Rate metrics (completionRate, engagementRate, bounceRate) return as numbers (0–100); counts are integers. Returns { formId, period, metrics, breakdown, totalEvents }. totalEvents is the raw analytics event row count (before deduplication into unique visitors). When from/to both omitted, response returns period: { from: null, to: null } (all time). Constraint: from <= to when both supplied. Analytics are a Pro feature: if the workspace owner is not on Pro, this returns UPGRADE_REQUIRED rather than data, including for history recorded while they were.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End of date range as Unix ms timestamp. Must be >= `from` when both set. | |
| from | No | Start of date range as Unix ms timestamp. Must be <= `to` when both set. | |
| device | No | Filter by device type (default: all) | |
| formId | Yes | Form ID to get analytics for | |
| country | No | Filter by country code (e.g., "US", "DE", "TR") | |
| includeEvents | No | Include sanitized analytics events for custom analysis (no visitor IDs) | |
| trafficSource | No | Filter by traffic source (e.g., "Direct", "Google", referrer domain) |