send_ga4_event
Send custom events to Google Analytics 4 via the Measurement Protocol. Use debug validation to verify payloads before actual ingestion.
Instructions
Send an event into a GA4 property via the Measurement Protocol. measurement_id is the stream's 'G-XXXXXXX'; api_secret comes from a Measurement Protocol secret; client_id identifies the user/device. Set validate=True to hit GA4's debug/validation endpoint (checks the payload WITHOUT ingesting it) — recommended before real sends.
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": {
"measurement_id": "<measurement_id>",
"api_secret": "<api_secret>",
"client_id": "<client_id>",
"event_name": "<event_name>"
},
"name": "send_ga4_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | ||
| validate | No | ||
| client_id | Yes | ||
| api_secret | Yes | ||
| event_name | Yes | ||
| measurement_id | Yes |