Who's on the sites now
const url = 'https://digize.com/api/v1/analytics/realtime';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/realtime \ --header 'x-api-key: <x-api-key>'Visitors with a page view in the last five minutes and what they’re reading, where they came from (channel and referring site), their countries and devices, and page views minute by minute over the last 30, across every site. Counts come from the request log, a few seconds behind.
Needs the analytics:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
object
When the window ends.
Visitors with a page view in the last five minutes.
The last 30 minutes, minute by minute, oldest first.
object
object
Channels, by visitors.
object
Its part of the breakdown, from 0 to 1.
Referring sites, by visitors.
object
Its part of the breakdown, from 0 to 1.
object
Its part of the breakdown, from 0 to 1.
object
Its part of the breakdown, from 0 to 1.
Example
{ "unavailable": { "reason": "token" }, "tracking": "full"}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" }}