Draft an Analytics key event
draft_key_eventDraft the marking of a GA4 event as a key event (conversion) and preview a plan before applying it to future data.
Instructions
Draft marking a GA4 event as a key event (conversion) — returns a PREVIEW.
The fix for "the event fires but isn't tracked as a conversion": attribution_check / validate_tracking diagnose it, this closes the loop. Applies to future data only. Returns a preview with a plan_id and warnings; nothing changes until confirm_and_apply applies it.
Google Analytics Data API: https://developers.google.com/analytics/devguides/reporting/data/v1 and Admin API: https://developers.google.com/analytics/devguides/config/admin/v1
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event_name | Yes | Name of the GA4 event to mark as a key event, exactly as it fires (e.g. "sign_up", "purchase"). Required. | |
| property_id | No | Numeric GA4 property ID, with or without the "properties/" prefix. If empty, uses the default from config. | |
| counting_method | No | ONCE_PER_EVENT (counts every occurrence, e.g. purchases) or ONCE_PER_SESSION (counts once per session, e.g. sign-ups). Defaults to ONCE_PER_EVENT. | ONCE_PER_EVENT |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||