GA4: Enhanced measurement
ga4_enhanced_measurementEnhanced-Measurement eines Web-Datenstreams lesen/setzen (Scroll, Outbound, interne Suche, Video, Datei-Downloads, Seitenwechsel, Formular-Interaktionen). action: get | set. settings = Dict von Bool-Flags (z.B. {'scrollsEnabled': true}). streamEnabled ist der Hauptschalter: steht er auf false, misst keine Unterfunktion, auch wenn sie true ist. get liefert alle Flags als true/false. pageChangesEnabled nicht einschalten, wenn die Seite Seitenwechsel schon selbst als page_view meldet (sonst doppelt gezaehlt). data_stream_id aus ga4_list_data_streams. property_id: die GA4-Property des Workspace (andere werden abgelehnt). workspace: Slug des Kunden-Workspace (optional bei nur einem Workspace).
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": {
"action": "<action>",
"property_id": "<property_id>",
"data_stream_id": "<data_stream_id>"
},
"name": "ga4_enhanced_measurement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| settings | No | ||
| workspace | No | ||
| property_id | Yes | ||
| data_stream_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||