# Hermoso: create_analytics_key_event · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/create_analytics_key_event/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Ad campaign management](https://hermoso.ai/docs/reference/ads/) / create_analytics_key_event

# `create_analytics_key_event`

Mark a GA4 event as a key event (conversion)

Area: GOOGLE ANALYTICS · [Ad campaign management](https://hermoso.ai/docs/reference/ads/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## Description

Mark an event GA4 ALREADY COLLECTS as a KEY EVENT — what GA4 calls a conversion since the 2024 rename (the resource is keyEvents; the old conversionEvents spelling is deprecated). This is what makes an event countable as a result in reports and importable into Google Ads as a conversion. THE EVENT NAME MUST MATCH AN EVENT THE SITE ALREADY SENDS ("purchase", "generate_lead", "sign_up", or a custom one) — marking an event that is never fired creates a key event that can never fire, so check list_analytics_definitions or an analytics_report broken down by eventName first. countingMethod ONCE_PER_EVENT counts EVERY occurrence; ONCE_PER_SESSION counts the event at most ONCE PER SESSION, however many times it fires in that session. Those are the only two GA4 accepts — there is no per-USER counting method, and asking for one is refused rather than quietly counted per event. The result is READ BACK from Google, never echoed from the request. The property is the NUMERIC id from list_analytics_properties. Needs the Google Analytics connection to have edit access on the property.

## Parameters

Parameter Type Description

`property` required `string` the NUMERIC GA4 property id from list_analytics_properties — it must be one SHARED with this profile, and any other is refused by name

`eventName` required `string` an event GA4 already collects, e.g. "purchase" / "generate_lead" / "sign_up"

`countingMethod` `"ONCE_PER_EVENT" | "ONCE_PER_SESSION"` default ONCE_PER_EVENT; ONCE_PER_SESSION counts at most once per session (GA4 publishes no per-user method)

## Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and `POST https://app.hermoso.ai/v1/tools/create_analytics_key_event`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_analytics_key_event","arguments":{"property":"<string>","eventName":"<string>"}}}`
**CLI**

`hermoso call create_analytics_key_event --json '{"property":"<string>","eventName":"<string>"}'`

## Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See [Credits & costs](https://hermoso.ai/docs/credits/).

## Related tools

- [list_analytics_definitions](https://hermoso.ai/docs/reference/ads/list_analytics_definitions/) List a GA4 property’s key events and custom dimensions
- [analytics_report](https://hermoso.ai/docs/reference/ads/analytics_report/) Run a GA4 report
- [list_analytics_properties](https://hermoso.ai/docs/reference/ads/list_analytics_properties/) List the GA4 properties shared with this profile
- [create_analytics_custom_dimension](https://hermoso.ai/docs/reference/ads/create_analytics_custom_dimension/) Create a GA4 custom dimension
- [analytics_realtime](https://hermoso.ai/docs/reference/ads/analytics_realtime/) Who is on the site right now (GA4 realtime)
- [list_analytics_metadata](https://hermoso.ai/docs/reference/ads/list_analytics_metadata/) What a GA4 property can be asked
- [archive_analytics_custom_dimension](https://hermoso.ai/docs/reference/ads/archive_analytics_custom_dimension/) Archive a GA4 custom dimension
- [delete_analytics_key_event](https://hermoso.ai/docs/reference/ads/delete_analytics_key_event/) Stop counting a GA4 event as a conversion
- [create_analytics_custom_metric](https://hermoso.ai/docs/reference/ads/create_analytics_custom_metric/) Register a GA4 custom metric
- [archive_analytics_custom_metric](https://hermoso.ai/docs/reference/ads/archive_analytics_custom_metric/) Archive a GA4 custom metric (one-way)

[All 759 Ad campaign management tools](https://hermoso.ai/docs/reference/ads/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
