Skip to content

Landing pages end to end

GET
/api/v1/analytics/landing-pages
curl --request GET \
--url 'https://digize.com/api/v1/analytics/landing-pages?days=28&limit=20' \
--header 'x-api-key: <x-api-key>'

Each page visits start on over the last days, with three sources joined by path: how Google shows it (Search Console’s impressions, clicks, click rate against what its position usually gets, position and top searches, when Search Console is connected), what the visits that started there did (Digize’s own site events: visits, bounce rate, engaged time, how far down they got, LCP and INP at p75, errors, rage and dead clicks, by device), and what they led to (conversion rate, and visits and value by outcome). verdicts says what the numbers point to where there are enough of them, such as a listing few click on Google against people landing and leaving, and sources names each source’s gaps. Use it for “where do visitors come from and what happens when they land”, and beside analytics.compare for “why don’t they buy”.

Needs the analytics:read permission.

days

The window: the last 1 to 90 days, to now. 28 matches Search Console’s latest 28 days.

integer
default: 28 >= 1 <= 90

The window: the last 1 to 90 days, to now. 28 matches Search Console’s latest 28 days.

siteId

One site, by its id; every site when left out.

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

One site, by its id; every site when left out.

path

One landing page, such as /pricing.

string
/^\/[A-Za-z0-9\-._~!$&()*+,;=:@%/]{0,255}$/

One landing page, such as /pricing.

limit

How many pages, the most visited first.

integer
default: 20 >= 1 <= 100

How many pages, the most visited first.

Done

Media typeapplication/json
object
unavailable
required
Any of:
object
reason
required
string
Allowed values: token upstream
message
required
string
from
required
string format: date-time
to
required
string format: date-time
days
required
number
partial
required

More landing pages than one query reads: the commonest are.

boolean
totals
required

Every visit read, to weigh one page against the rest.

object
sessions
required
number
converted
required
number
conversionRate
required
number | null
searchConsole
required
object
status
required
string
Allowed values: connected not_connected failed
property
required
string | null
source
required
Any of:
string
Allowed values: stored live
startDate
required
string | null
endDate
required
string | null
note
required
string | null
sources
required

Each source in a sentence: what it covers and what it misses.

object
digize
required
string
searchConsole
required
string
googleAnalytics
required
string
pages
required
Array<object>
object
siteId
required
string
hostname
required
string
path
required
string
visits
required
object
sessions
required

Visits that started on the page.

number
bounces
required
number
bounceRate
required

Visits that saw only this page, engaged under 10 seconds, and led to nothing.

number | null
engagedSeconds
required

Engaged time per visit, across its pages.

number | null
pagesPerVisit
required
number | null
halfway
required

Visits that got halfway down a page.

number | null
withErrors
required

Visits with a JavaScript error or an error page.

number | null
rageClicks
required

Visits with rage clicks.

number | null
deadClicks
required

Visits with dead clicks.

number | null
lcp
required

Largest Contentful Paint at p75 on the page, in ms.

number | null
inp
required

Interaction to Next Paint at p75 on the page, in ms.

number | null
samples
required

Web Vitals readings behind them.

number
devices
required
Array<object>
object
device
required
string
Allowed values: phone tablet desktop other
sessions
required
number
converted
required
number
conversionRate
required
number | null
bounceRate
required
number | null
lcp
required

LCP at p75 on this device, once it has 10 readings.

number | null
outcomes
required
object
converted
required

Visits that sent a form, booked or bought.

number
conversionRate
required
number | null
currency
required
string
byOutcome
required

Each outcome the visits reached.

Array<object>
object
outcome
required
string
Allowed values: lead booking checkout_start checkout_abandoned purchase refund
sessions
required
number
rate
required
number | null
value
required

Added up, in minor units of currency.

number
search
required
Any of:
object
clicks
required
number
impressions
required
number
ctr
required

Clicks over impressions, 0 to 1.

number
position
required

Its average place on Google, 1 the top.

number
expectedCtr
required

The click rate a result usually gets at that position.

number
searches
required

Its most clicked searches, of those Search Console lists.

Array<object>
object
query
required
string
clicks
required
number
impressions
required
number
ctr
required
number
position
required
number
verdicts
required

What the numbers point to, where there are enough of them: speed, errors, people landing and leaving, a listing on Google few click, a page converting poorly, one almost ranking, or one working well.

Array<object>
object
kind
required
string
Allowed values: speed errors leaves listing lags ranking working
summary
required
string

Example

{
"unavailable": {
"reason": "token"
},
"searchConsole": {
"status": "connected",
"source": "stored"
},
"pages": [
{
"visits": {
"devices": [
{
"device": "phone"
}
]
},
"outcomes": {
"byOutcome": [
{
"outcome": "lead"
}
]
},
"verdicts": [
{
"kind": "speed"
}
]
}
]
}

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"
}
}