send_ga4_event
Send an event to Google Analytics 4 using the Measurement Protocol. Validate payloads with GA4's debug endpoint before sending.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | ||
| validate | No | ||
| client_id | Yes | ||
| api_secret | Yes | ||
| event_name | Yes | ||
| measurement_id | Yes |