Inputs
SelectableOption
Output
Type:Dict
Returns the saved retention settings.
Fields: property_id, event_data_retention, user_data_retention, reset_user_data_on_new_activityDocumentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Updates a Google Analytics 4 property’s data retention: how long event and user data is kept (2 or 14 months; longer on GA4 360) and whether a user’s retention resets on new activity
| App | GA4 |
| Operation ID | ga4_update_data_retention |
| Type | Action |
| Connection | ga4 (required) |
| Credits per run | 1 |
| Agent / MCP tool | Yes |
| Requires approval | Yes (write operation) |
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
account | array (also accepts a comma-separated string) | No | - | The GA4 property to change. Only one property at a time. |
event_data_retention | string or SelectableOption | No | - | How long event-level data is kept for explorations: ‘TWO_MONTHS’ or ‘FOURTEEN_MONTHS’. ‘TWENTY_SIX_MONTHS’, ‘THIRTY_EIGHT_MONTHS’ and ‘FIFTY_MONTHS’ are only available on GA4 360 properties. |
user_data_retention | string or SelectableOption | No | - | How long user-level data is kept. Same options as event_data_retention. |
reset_user_data_on_new_activity | boolean | No | - | When true, a user’s retention period restarts on each new event from that user. |
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
value | string | Yes | - | |
label | string | Yes | - |
Dict
Returns the saved retention settings.
Fields: property_id, event_data_retention, user_data_retention, reset_user_data_on_new_activity