Click points on a page
const url = 'https://digize.com/api/v1/analytics/clicks?path=example&viewport=phone&days=30&limit=2000';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/clicks?path=example&viewport=phone&days=30&limit=2000' \ --header 'x-api-key: <x-api-key>'Where people click on one page at one width (phone under 768px wide, tablet under 1024px, desktop): the newest click points, each with x in percent of the page’s width, y in pixels from its top and the page’s height then, marked as a click, a dead click or a rage click; the clicks, dead clicks and rage clicks on each element; and how far down views at that width get. For a heatmap or a scroll map, or to see what people try to click.
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.
How many points, the newest first.
How many points, the newest first.
Responses
Section titled “Responses”Done
object
object
The median page height, in pixels, when clicked.
object
Percent of the page’s width.
CSS pixels from the top of the page.
More clicks than points: the newest are shown.
Views at this width that got at least mark percent down the page, and their share of the views at this width that scrolled or loaded it: a scroll map.
object
object
Example
{ "unavailable": { "reason": "token" }, "viewport": "phone", "points": [ { "kind": "click" } ]}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" }}