Pages and their problems
const url = 'https://digize.com/api/v1/analytics/pages?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/pages?days=30&limit=50' \ --header 'x-api-key: <x-api-key>'The pages on the workspace’s sites ranked by views over the last days (up to 90): entrances, exit rate, engaged time, how far down people scroll, Web Vitals at p75, JavaScript and loading errors, dead and rage clicks, forms started and sent, and the conversion rate of the sessions that saw each. problems names what’s wrong on a page with the number behind it and the threshold it passed: slow LCP or INP, layout shift, errors, dead or rage clicks, a form often started and left, high exits, low scroll. Use it for “which pages need work?”, then analytics.pages.get on one.
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.
How many pages, the most viewed first.
How many pages, the most viewed first.
Responses
Section titled “Responses”Done
object
Every site with views in the window, whichever one is picked.
object
object
Engaged time per view, in seconds.
Views that got at least mark percent down the page, and their share of every view.
object
Web Vitals at p75: LCP, INP, FCP and TTFB in ms, CLS unitless; null where nothing was reported. Good is LCP ≤ 2500, INP ≤ 200, CLS ≤ 0.1.
object
Images, scripts and stylesheets that failed to load.
Sessions that saw the page.
Of those, the ones that sent a form, booked or bought.
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" }, "pages": [ { "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" }}