ga4_update_data_redaction
Update client-side data redaction for a GA4 web data stream by enabling email redaction and redacting specified URL query parameters. Requires write mode and confirm=true.
Instructions
[GA4 WRITE] Update a WEB data stream's client-side data redaction: email redaction and URL query-parameter redaction (with the parameter key list). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"property": "<property>",
"dataStreamId": "<dataStreamId>",
"confirm": "<confirm>"
},
"name": "ga4_update_data_redaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true to apply the change. | |
| property | Yes | GA4 property ID, e.g. "123456789" or "properties/123456789". | |
| dataStreamId | Yes | Data stream ID (numeric) or "dataStreams/{id}". | |
| queryParameterKeys | No | Query params to redact, e.g. ["email", "phone"]. | |
| emailRedactionEnabled | No | ||
| queryParameterRedactionEnabled | No |