Inputs
SelectableOption
Output
Type:Dict
Returns the saved stream (id, type, name, measurement id or app ids) or the secret (id, name, secret value).
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.
Creates, renames or deletes Google Analytics 4 web, Android and iOS data streams, and creates or deletes a stream’s Measurement Protocol API secrets
| App | GA4 |
| Operation ID | ga4_manage_data_streams |
| 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. |
action | string or SelectableOption | Yes | - | ‘create’ adds a web, Android or iOS data stream; ‘update’ renames a stream; ‘delete’ removes it and stops its data collection; ‘create_secret’ and ‘delete_secret’ manage the stream’s Measurement Protocol API secrets. Options: ‘create’, ‘update’, ‘delete’, ‘create_secret’, ‘delete_secret’. |
data_stream_id | string | No | - | Numeric id of the stream for every action except create. Read ids from ga4_get_property_settings with setting ‘data_streams’. |
stream_type | string or SelectableOption | No | - | create only: ‘WEB_DATA_STREAM’, ‘ANDROID_APP_DATA_STREAM’ or ‘IOS_APP_DATA_STREAM’. Fixed afterwards. |
display_name | string | No | - | Stream name shown in GA4 (max 255 chars). Required on create and update. |
default_uri | string | No | - | Web streams on create: the site URL, e.g. ‘https://www.example.com’. Fixed afterwards. |
package_name | string | No | - | Android streams on create: the app package name, e.g. ‘com.example.app’. Fixed afterwards. |
bundle_id | string | No | - | iOS streams on create: the app bundle id, e.g. ‘com.example.app’. Fixed afterwards. |
secret_display_name | string | No | - | create_secret: name of the new Measurement Protocol secret, e.g. ‘CRM sync’. |
secret_id | string | No | - | delete_secret: numeric id of the secret to delete. |
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
value | string | Yes | - | |
label | string | Yes | - |
Dict
Returns the saved stream (id, type, name, measurement id or app ids) or the secret (id, name, secret value).
Fields: dynamic (depend on the inputs)