List page paths
const url = 'https://digize.com/api/v1/analytics/paths?outcome=lead&steps=3&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/paths?outcome=lead&steps=3&days=30' \ --header 'x-api-key: <x-api-key>'The commonest paths through a session’s first few pages for sessions that reached an outcome, and for those that ended without it, each with how many sessions took it and how often they converted.
Needs the analytics:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The outcome to follow; any is a lead, booking or purchase.
The outcome to follow; any is a lead, booking or purchase.
How many page views of each session to follow.
How many page views of each session to follow.
How many days back from now to read: 90 at most.
How many days back from now to read: 90 at most.
One site’s sessions, by its Worker id; every site’s when left out.
One site’s sessions, by its Worker id; every site’s when left out.
Responses
Section titled “Responses”Done
object
object
Its sessions saw no more pages than these.
Its part of its side.
object
Its sessions saw no more pages than these.
Its part of its side.
Example
{ "outcome": "lead"}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" }}