Google Analytics: Get Tracking Configuration
ga4_get_tracking_configurationRead how one GA4 property is configured to track, from the user's connected Google Analytics login: data streams (id, type, measurement id, URL), key events (counting method, default value), event create rules, event edit rules (in processing order), enhanced measurement and data redaction settings per web stream, with the ids the GA4 write tools take. Pass stream_id for one stream in full; without it the per-stream sections cover up to 3 web streams. Each section reports whether it was read. Shows configuration only — whether GA4 actually receives an event is a ga4_run_report or ga4_run_realtime_report question. Read-only.
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_id": "<property_id>"
},
"name": "ga4_get_tracking_configuration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sections | No | Sections to read; default all. event_rules covers both create and edit rules. | |
| stream_id | No | Optional data stream number (or properties/<p>/dataStreams/<n>) to read in full. | |
| property_id | Yes | The GA4 property: its number (123456789) or properties/123456789. Must be one of the properties ga4_get_account_summaries lists for the connected login. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | Yes | Reads that failed. | |
| streams | Yes | Data streams, each with its per-stream sections when read: eventCreateRules, eventEditRules, enhancedMeasurement, dataRedaction. | |
| complete | Yes | True when every requested section was read in full. | |
| property | Yes | properties/<number>. | |
| sections | Yes | Section → ok, partial, failed or not_requested. | |
| keyEvents | No | Key events, or null when not read. | |
| streamsNotDetailed | No | Web streams left out of the per-stream sections; pass one as stream_id. |