Skip to content
Start here

Config

Get Google Tag Gateway configuration
client.GoogleTagGateway.Config.Get(ctx, query) (*Config, error)
GET/zones/{zone_id}/settings/google-tag-gateway/config
Update Google Tag Gateway configuration
client.GoogleTagGateway.Config.Update(ctx, params) (*Config, error)
PUT/zones/{zone_id}/settings/google-tag-gateway/config
ModelsExpand Collapse
type Config struct{…}

Google Tag Gateway configuration for a zone.

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

HideOriginalIP bool

Hides the original client IP address from Google when enabled.

MeasurementID string

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

SetUpTag booloptional

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