ga_send_event
Send custom events to Google Analytics 4 to track conversions, clicks, form submissions, video plays, and file downloads. Reports update within minutes.
Instructions
Send a custom event to Google Analytics via Measurement Protocol.
Use this for tracking custom user actions, conversions, or any GA4 event. Events are processed asynchronously and appear in reports within minutes.
Common events: click, form_submit, video_play, file_download, custom_conversion
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": {
"events": "<events>"
},
"name": "ga_send_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | Yes | Events to send (can send multiple in one request) | |
| user_id | No | Optional User ID for cross-device tracking | |
| client_id | No | Client ID (UUID format recommended). Auto-generated if not provided. | |
| user_properties | No | User properties (e.g., {subscription_tier: {value: "premium"}}) |