Inputs
Output
Type:Dict
Returns the saved enhanced measurement and data redaction settings for the groups that were changed.
Fields: dynamic (depend on the inputs)Documentation 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 web data stream’s enhanced measurement (scrolls, outbound clicks, site search, video, file downloads, page changes, form interactions) and data redaction (email, URL qu…
| App | GA4 |
| Operation ID | ga4_update_web_stream_settings |
| 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 that owns the web data stream. Only one property at a time. |
data_stream_id | string | Yes | - | Numeric id of the WEB data stream to change, e.g. ‘7613215464’. Read it from ga4_get_property_settings with setting ‘data_streams’. App streams have no enhanced measurement or redaction settings. |
stream_enabled | boolean | No | - | Master switch for enhanced measurement on this stream. |
scrolls_enabled | boolean | No | - | Record scroll events when a visitor reaches the page bottom. |
outbound_clicks_enabled | boolean | No | - | Record clicks on links leading away from the domain. |
site_search_enabled | boolean | No | - | Record view_search_results events when the URL carries a search parameter. |
video_engagement_enabled | boolean | No | - | Record embedded YouTube video start, progress and complete. |
file_downloads_enabled | boolean | No | - | Record clicks on document, archive, audio and video file links. |
page_changes_enabled | boolean | No | - | Record page_view events on browser history changes (single-page apps). |
form_interactions_enabled | boolean | No | - | Record form_start and form_submit events. |
search_query_parameter | string | No | - | Comma-separated URL query parameters that hold the site search term, e.g. ‘q,s,search,query,keyword’. Max 1024 chars. |
uri_query_parameter | string | No | - | Comma-separated additional query parameters captured with site search. Max 1024 chars. |
email_redaction_enabled | boolean | No | - | Redact event parameter and user property values that look like an email address. |
query_parameter_redaction_enabled | boolean | No | - | Remove the listed query parameters and their values from collected URLs. |
query_parameter_keys | string or array of string | No | - | Query parameter keys to redact when query_parameter_redaction_enabled is true, e.g. [‘email’, ‘phone’]. Matching is case-insensitive. |
Dict
Returns the saved enhanced measurement and data redaction settings for the groups that were changed.
Fields: dynamic (depend on the inputs)