Skip to content

Google Analytics

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

The Google Analytics property and web stream the sites report to, whether paid orders, bookings and leads go to it from the server and how, its key events, its Google Ads link, and how many events went over the last 30 days.

Needs the analytics:read permission.

Done

Media typeapplication/json
object
connected
required

Whether Google Analytics is connected in Settings › Integrations.

boolean
account
required

The Google account it’s connected as.

string | null
property
required
Any of:
object
account
required
string
accountName
required
string
property
required
string
propertyName
required
string
stream
required
string
streamName
required
string
measurementId
required
string
streamUri
required
string | null
timeZone
required

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

string
currency
required
string | null
created
required

Whether Digize made the property and stream.

boolean
chosenBy
required
string
chosenAt
required
string format: date-time
serverEvents
required

Whether paid orders, bookings and site form leads go to GA4 from the server, which the Google tag then leaves to it.

boolean
transport
required

How they go: Data Manager, or the Measurement Protocol for a property Data Manager doesn’t take events for.

string
Allowed values: data_manager measurement_protocol
dataManagerRefusal
required
string | null
keyEvents
required
object
wanted
required
Array<string>
marked
required
Any of:
Array<string>
error
required
string | null
ads
required
object
customer
required
Any of:
object
id
required
string
name
required
string
linked
required

The Google Ads customer the property is linked to.

string | null
error
required
string | null
setUpAt
required
Any of:
string format: date-time
events
required

Over the last 30 days.

object
sent
required
number
failed
required
number
pending
required
number
skipped
required
number
workspaceName
required
string
sites
required

The workspace’s sites’ hostnames, which a new stream can measure.

Array<string>

Example

{
"transport": "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"
}
}