Forms and where people leave
const url = 'https://digize.com/api/v1/analytics/forms?days=30&limit=50';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?days=30&limit=50' \ --header 'x-api-key: <x-api-key>'Each form on the workspace’s sites over the last days: how often it was started and sent, its completion rate, the fields people leave it on and the fields marked invalid, the median time to fill it in, and the same by device. A form is named as the tracker names it (its form id, name, or where it posts); path narrows the list to one page’s forms. What visitors type is never recorded.
Needs the analytics:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”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.
The page’s path, such as /pricing, without its query string.
The page’s path, such as /pricing, without its query string.
How many forms, the most started first.
How many forms, the most started first.
Responses
Section titled “Responses”Done
object
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
Example
{ "unavailable": { "reason": "token" }, "forms": [ { "devices": [ { "device": "phone" } ] } ]}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" }}