Skip to content

Store funnel

GET
/api/v1/google-analytics/store-funnel
curl --request GET \
--url 'https://digize.com/api/v1/google-analytics/store-funnel?startDate=28daysAgo&endDate=yesterday&by=device' \
--header 'x-api-key: <x-api-key>'

The store’s funnel from GA4: how many people viewed a product (view_item), added one to the cart (add_to_cart), began a checkout (begin_checkout) and bought (purchase) over a range, with each step’s rate from the one before, for every visit and by device or channel if asked. Says plainly which steps the property recorded none of, which means its site doesn’t send them.

Needs the analytics:read permission.

startDate

The first day: a date such as 2026-10-01, or today, yesterday or NdaysAgo, on the property’s clock.

string
default: 28daysAgo /^(\d{4}-\d{2}-\d{2}|today|yesterday|\d{1,4}daysAgo)$/

The first day: a date such as 2026-10-01, or today, yesterday or NdaysAgo, on the property’s clock.

endDate

The last day.

string
default: yesterday /^(\d{4}-\d{2}-\d{2}|today|yesterday|\d{1,4}daysAgo)$/

The last day.

by

Also each device, or each channel.

string
Allowed values: device channel

Also each device, or each channel.

Done

Media typeapplication/json
object
property
required
object
property
required
string
name
required
string
currency
required
string | null
timeZone
required

The property’s clock, which its days are on.

string
startDate
required
string
endDate
required
string
by
required
Any of:
string
Allowed values: device channel
groups
required

Every visit first, then each device or channel, the most visits first.

Array<object>
object
label
required

The device or channel; null for every visit.

string | null
sessions
required
number
steps
required
Array<object>
object
event
required
string
Allowed values: view_item add_to_cart begin_checkout purchase
users
required

People who sent the event at least once.

number
events
required
number
rate
required

Users over the step before’s, 0 to 1; null for the first step or after one nobody reached.

number | null
conversion
required

People who bought over people who viewed a product; null when nobody viewed one.

number | null
missing
required

The steps the property recorded none of over the days.

Array<string>
Allowed values: view_item add_to_cart begin_checkout purchase
message
required

What the missing steps mean; null when none are.

string | null
thresholded
required
boolean

Example

{
"by": "device",
"groups": [
{
"steps": [
{
"event": "view_item"
}
]
}
],
"missing": [
"view_item"
]
}

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