Skip to content

List page paths

GET
/api/v1/analytics/paths
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.

outcome

The outcome to follow; any is a lead, booking or purchase.

string
default: any
Allowed values: lead booking checkout_start checkout_abandoned purchase refund any

The outcome to follow; any is a lead, booking or purchase.

steps

How many page views of each session to follow.

integer
default: 3 >= 1 <= 5

How many page views of each session to follow.

days

How many days back from now to read: 90 at most.

integer
default: 30 >= 1 <= 90

How many days back from now to read: 90 at most.

site

One site’s sessions, by its Worker id; every site’s when left out.

string
/^[A-Za-z0-9_-]{1,64}$/

One site’s sessions, by its Worker id; every site’s when left out.

Done

Media typeapplication/json
object
outcome
required
string
Allowed values: lead booking checkout_start checkout_abandoned purchase refund any
steps
required
number
sessions
required
number
converted
required
number
partial
required
boolean
reached
required
Array<object>
object
pages
required
Array<string>
ended
required

Its sessions saw no more pages than these.

boolean
sessions
required
number
converted
required
number
rate
required
number
share
required

Its part of its side.

number
missed
required
Array<object>
object
pages
required
Array<string>
ended
required

Its sessions saw no more pages than these.

boolean
sessions
required
number
converted
required
number
rate
required
number
share
required

Its part of its side.

number

Example

{
"outcome": "lead"
}

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}