ga4_create_data_stream
Create a GA4 web data stream to obtain the measurement ID required for installing analytics on a website.
Instructions
Create a web data stream on a Google Analytics 4 property and return its measurement id for the tag. Use when the user needs a measurement id to install analytics on a site. This server cannot delete the stream afterwards. Call ga4_list_data_streams if a stream may already exist, and call ga4_create_property first when the property itself does not exist yet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Website URL for the data stream (e.g., "https://example.com") | |
| property_id | Yes | GA4 property ID (e.g., "123456" or "properties/123456") | |
| stream_name | No | Display name for the stream (defaults to hostname) |