---
title: Google Tag Gateway
---

[Skip to content](#_top)

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

Copy Markdown

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

---

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

# Google Tag Gateway

#### Google Tag GatewayConfig

#### resource cloudflare\_google\_tag\_gateway

##### required Expand Collapse

zone\_id: String

Identifier.

[Link to this property](<#(resource)%20google_tag_gateway.config%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20zone_id>)

enabled: Bool

Enables or disables Google Tag Gateway for this zone.

[Link to this property](<#(resource)%20google_tag_gateway.config%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20enabled>)

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).

[Link to this property](<#(resource)%20google_tag_gateway.config%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20endpoint>)

hide\_original\_ip: Bool

Hides the original client IP address from Google when enabled.

[Link to this property](<#(resource)%20google_tag_gateway.config%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20hide_original_ip>)

measurement\_id: String

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

[Link to this property](<#(resource)%20google_tag_gateway.config%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20measurement_id>)

##### optional Expand Collapse

set\_up\_tag?: Bool

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

[Link to this property](<#(resource)%20google_tag_gateway.config%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20set_up_tag>)

##### computed Expand Collapse

id: String

Identifier.

[Link to this property](<#(resource)%20google_tag_gateway.config%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20id>)

### cloudflare\_google\_tag\_gateway

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_google_tag_gateway" "example_google_tag_gateway" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  enabled = true
  endpoint = "/metrics"
  hide_original_ip = true
  measurement_id = "GTM-P2F3N47Q"
  set_up_tag = true
}
```

#### data cloudflare\_google\_tag\_gateway

##### required Expand Collapse

zone\_id: String

Identifier.

[Link to this property](<#(resource)%20google_tag_gateway.config%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20zone_id>)

##### computed Expand Collapse

id: String

Identifier.

[Link to this property](<#(resource)%20google_tag_gateway.config%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20id>)

enabled: Bool

Enables or disables Google Tag Gateway for this zone.

[Link to this property](<#(resource)%20google_tag_gateway.config%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20enabled>)

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).

[Link to this property](<#(resource)%20google_tag_gateway.config%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20endpoint>)

hide\_original\_ip: Bool

Hides the original client IP address from Google when enabled.

[Link to this property](<#(resource)%20google_tag_gateway.config%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20hide_original_ip>)

measurement\_id: String

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

[Link to this property](<#(resource)%20google_tag_gateway.config%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20measurement_id>)

set\_up\_tag: Bool

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

[Link to this property](<#(resource)%20google_tag_gateway.config%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20set_up_tag>)

### cloudflare\_google\_tag\_gateway

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_google_tag_gateway" "example_google_tag_gateway" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
```