---
title: Config
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api)

[Google Tag Gateway](https://developers.cloudflare.com/api/resources/google_tag_gateway)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Config

##### [Get Google Tag Gateway configuration](https://developers.cloudflare.com/api/resources/google_tag_gateway/subresources/config/methods/get)

GET/zones/{zone\_id}/settings/google-tag-gateway/config

##### [Update Google Tag Gateway configuration](https://developers.cloudflare.com/api/resources/google_tag_gateway/subresources/config/methods/update)

PUT/zones/{zone\_id}/settings/google-tag-gateway/config

##### ModelsExpand Collapse

<details>

<summary>

Config object {enabled, endpoint, hideOriginalIp, 2 more }

Google Tag Gateway configuration for a zone.

</summary>

enabled: boolean

Enables or disables Google Tag Gateway for this zone.

<a href="#(resource)%20google_tag_gateway.config%20%3E%20(model)%20config%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

endpoint: string

Specifies the endpoint path for proxying Google Tag Manager requests. Use an absolute path starting with ’/’, with no nested paths and alphanumeric characters only (e.g. /metrics).

<a href="#(resource)%20google_tag_gateway.config%20%3E%20(model)%20config%20%3E%20(schema)%20%3E%20(property)%20endpoint">Link to this property</a>

hideOriginalIp: boolean

Hides the original client IP address from Google when enabled.

<a href="#(resource)%20google_tag_gateway.config%20%3E%20(model)%20config%20%3E%20(schema)%20%3E%20(property)%20hideOriginalIp">Link to this property</a>

measurementId: string

Specify the Google Tag Manager container or measurement ID (e.g. GTM-XXXXXXX or G-XXXXXXXXXX).

<a href="#(resource)%20google_tag_gateway.config%20%3E%20(model)%20config%20%3E%20(schema)%20%3E%20(property)%20measurementId">Link to this property</a>

setUpTag: optional boolean

Set up the associated Google Tag on the zone automatically when enabled.

<a href="#(resource)%20google_tag_gateway.config%20%3E%20(model)%20config%20%3E%20(schema)%20%3E%20(property)%20setUpTag">Link to this property</a>

</details>

[Link to this property](<#(resource)%20google_tag_gateway.config%20%3E%20(model)%20config%20%3E%20(schema)>)