Draft removing an Analytics key event
draft_delete_key_eventDraft removing a GA4 key event so it stops counting as a conversion in future data; returns a preview and plan_id, with no changes until confirmed.
Instructions
Draft removing a GA4 key event so the event no longer counts as a conversion, returning a PREVIEW.
The event itself keeps firing and stays in event reports; only its key-event status goes, for future data (key events already recorded are not reclassified). The draft resolves the event name against the property's key events (keyEvents.list), so the preview names the exact key event, its counting method and create time; an unknown name returns the existing key events, and one GA4 marks as not deletable is refused. Returns a preview with a plan_id and warnings; nothing changes until confirm_and_apply applies it (GA4 Admin API keyEvents.delete).
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 | Event name of the key event to remove, exactly as listed by list_key_events (e.g. "sign_up"). Required. | |
| property_id | No | Numeric GA4 property ID, with or without the "properties/" prefix. If empty, uses the default from config. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||