Get Google Tag Manager
const url = 'https://digize.com/api/v1/google-tag-manager';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
object
object
The container, GTM- and its id.
Where the gateway serves Tag Manager and its hits on each full-setup domain, such as /k3x9qz7a.
Whether the gateway keeps visitors’ addresses from Google.
object
A full-setup domain.
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.
Why Cloudflare refused it.
The sites’ other hostnames (the workspace’s address, custom hostnames), where Digize adds Tag Manager’s snippet, loading from Google.
Example
{ "data": { "gateways": [ { "state": "pending" } ] }}What was sent isn’t valid (invalid).
object
object
object
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
object
object
object
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
object
object
object
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
object
object
object
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
object
object
object
Example
{ "error": { "code": "invalid" }}