Mark GA4 events as key events
ga_create_key_eventMarks GA4 events as key events (conversions) via API so they count in keyEvents metrics and conversion reports without waiting for traffic; supports counting method and dry runs.
Instructions
Mark events as key events (conversions) in a GA4 property, so they count in keyEvents metrics, conversion reports and Google Ads imports. The GA4 UI only offers a star next to events that have already appeared in the last days, so a freshly instrumented event has to wait for traffic; the API registers it at once, with the counting method chosen here. Events already marked are skipped. A standard property allows 30 key events; check ga_property_config keyEvents first. dryRun shows what exists and what would be created.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | List existing key events and the ones that would be created, without creating anything. | |
| events | Yes | Events to mark as key events in this property. | |
| propertyId | Yes | GA4 property ID, e.g. '123456789' (see ga_list_properties). |