One form field by field
const url = 'https://digize.com/api/v1/analytics/forms/example?days=30';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://digize.com/api/v1/analytics/forms/example?days=30' \ --header 'x-api-key: <x-api-key>'One form, by its name in analytics.forms.list: starts, sends, completion and time to fill, by page and device; each field in order with how many reached it, how often it was filled or marked invalid, the time spent in it and how often it was the last field before someone left; and the field last touched in visits that never sent it.
Needs the analytics:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The form’s name, as analytics.forms.list gives it.
Query Parameters
Section titled “Query Parameters”The window: the last 1 to 90 days, to now.
The window: the last 1 to 90 days, to now.
One site, by its id (sites in analytics.pages.list lists them); every site when left out.
One site, by its id (sites in analytics.pages.list lists them); every site when left out.
Only where it’s on this page.
Only where it’s on this page.
Responses
Section titled “Responses”Done
object
object
Pages closed with the form started and not sent.
The fields it was left on, as a share of abandoned.
object
Fields marked invalid, as a share of starts.
object
Median seconds from starting it to sending it.
object
Each field in the form’s order.
object
Page views it was focused in.
Times the form was left with this its last field.
Unsent views that touched this field last.
The field last touched in views that never sent the form.
object
Example
{ "devices": [ { "device": "phone" } ], "unavailable": { "reason": "token" }}What was sent isn’t valid (invalid).
object
object
object
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
object
object
object
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
object
object
object
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
object
object
object
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
object
object
object
Example
{ "error": { "code": "invalid" }}