One page in detail
const url = 'https://digize.com/api/v1/analytics/page?path=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/page?path=example&days=30' \ --header 'x-api-key: <x-api-key>'One page over the last days: entrances, exits, engaged time in buckets, how many get 25, 50, 75, 90 and 100% down, the sections and calls to action seen (share of views, seconds until first seen) and clicked, the elements clicked with dead and rage clicks, links followed, errors, Web Vitals at p75 by device, the pages viewed before and after it, the forms on it, its problems, and how often a session that saw it converted, by outcome and by device. Give siteId when more than one site has the path.
Needs the analytics:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The page’s path, such as /pricing, without its query string.
The page’s path, such as /pricing, without its query string.
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.
Responses
Section titled “Responses”Done
object
object
Views by engaged time, from from seconds to under to.
object
Views that got at least mark percent down the page, and their share of every view.
object
Sessions that saw the page and went on to each outcome.
object
object
Views that got halfway down.
object
object
Median seconds after the page opened that it came into view.
Seconds in view per view, from the newest 2,000 views.
Calls to action seen and clicked.
object
Clicks per view that saw it.
Elements clicked, with the dead and rage clicks on each.
object
object
object
The page viewed just before it.
object
Null: the visit started here (before) or ended here (after).
The page viewed just after it.
object
Null: the visit started here (before) or ended here (after).
object
The field most often left on.
What’s wrong on the page, each with its number: slow LCP or INP, layout shift, errors, dead or rage clicks, a form often started and left, high exits, low scroll.
object
The number behind it, in the threshold’s unit.
Where it starts counting: ms for LCP and INP, per 100 views for errors and clicks, a share from 0 to 1 for exits, scroll and forms.
For a form: the form, and the field most left on.
Example
{ "unavailable": { "reason": "token" }, "outcomes": [ { "outcome": "lead" } ], "devices": [ { "device": "phone" } ], "vitals": [ { "device": "phone" } ], "links": [ { "kind": "outbound" } ], "errors": [ { "kind": "js" } ], "problems": [ { "kind": "slow_lcp" } ]}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" }}