Skip to content
Start here

Google Tag Gateway

Google Tag GatewayConfig

resource cloudflare_google_tag_gateway

required Expand Collapse
zone_id: String

Identifier.

enabled: Bool

Enables or disables Google Tag Gateway for this zone.

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

hide_original_ip: Bool

Hides the original client IP address from Google when enabled.

measurement_id: String

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

optional Expand Collapse
set_up_tag?: Bool

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

computed Expand Collapse
id: String

Identifier.

cloudflare_google_tag_gateway

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.

computed Expand Collapse
id: String

Identifier.

enabled: Bool

Enables or disables Google Tag Gateway for this zone.

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

hide_original_ip: Bool

Hides the original client IP address from Google when enabled.

measurement_id: String

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

set_up_tag: Bool

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

cloudflare_google_tag_gateway

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