Skip to content

Events sent to Google Analytics

GET
/api/v1/google-analytics/events
curl --request GET \
--url https://digize.com/api/v1/google-analytics/events \
--header 'x-api-key: <x-api-key>'

The last 50 paid orders, bookings and leads sent to GA4 from the server or on their way, newest first, with what Google said.

Needs the analytics:read permission.

Done

Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
kind
required
string
Allowed values: purchase booking lead
name
required

GA4’s name: purchase, book_appointment, generate_lead.

string
targetId
required

The order, appointment or form submission.

string
value
required
number | null
currency
required
string | null
status
required
string
Allowed values: waiting pending sent failed skipped
via
required
Any of:
string
Allowed values: data_manager measurement_protocol
error
required
string | null
madeClientId
required

Whether the visitor’s browser had no GA cookie, so Digize made a client id.

boolean
occurredAt
required
string format: date-time
sentAt
required
Any of:
string format: date-time

Example

{
"data": [
{
"kind": "purchase",
"status": "waiting",
"via": "data_manager"
}
]
}

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