Skip to content

Get Google Tag Manager

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

The connected Google Tag Manager container, and on which domains Cloudflare’s Google tag gateway serves it. Null when none is connected.

Needs the settings:read permission.

Done

Media typeapplication/json
object
data
required
Any of:
object
containerId
required

The container, GTM- and its id.

string
path
required

Where the gateway serves Tag Manager and its hits on each full-setup domain, such as /k3x9qz7a.

string
hideIp
required

Whether the gateway keeps visitors’ addresses from Google.

boolean
gateways
required
Array<object>
object
hostname
required

A full-setup domain.

string
state
required

on once Cloudflare’s Google tag gateway serves the container on the domain’s zone, pending until Cloudflare has taken the change, failed when it refused it.

string
Allowed values: pending on failed
error
required

Why Cloudflare refused it.

string | null
checkedAt
required
Any of:
string format: date-time
elsewhere
required

The sites’ other hostnames (the workspace’s address, custom hostnames), where Digize adds Tag Manager’s snippet, loading from Google.

Array<string>

Example

{
"data": {
"gateways": [
{
"state": "pending"
}
]
}
}

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