ga4_update_data_retention
Updates a GA4 property's event data retention period (2 to 50 months) and whether user data resets on new activity. Use it to control how long analytics data is stored.
Instructions
[GA4 WRITE] Update a property's event data retention (2/14/26/38/50 months; the longer options are 360-only) and whether it resets on new activity. 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>",
"confirm": "<confirm>"
},
"name": "ga4_update_data_retention"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | ||
| property | Yes | GA4 property ID, e.g. "123456789" or "properties/123456789". | |
| eventDataRetention | No | ||
| resetUserDataOnNewActivity | No |