Mark a GA4 event as a key event
mark_key_eventMark a GA4 custom event (e.g. connect_success or first_tool_call_success, already flowing in via src/analytics/measurementProtocol.ts and GTM) as a key event - together with create_google_ads_link, the prerequisite for Google to automatically sync it into a Google Ads conversion action (there's no API call to trigger that sync; it happens once both exist). Once synced, see update_ga4_conversion_action (Google Ads connector) to set it as a primary MAXIMIZE_CONVERSIONS goal. Needs the analytics scope; a connection made before that scope was requested will refuse this until reconnected (see needsReconsent).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"eventName": "<eventName>"
},
"name": "mark_key_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| property | No | ||
| eventName | Yes | The GA4 event name to mark, exactly as it appears in GA4 (case-sensitive). | |
| countingMethod | No | Default ONCE_PER_EVENT - counts every occurrence, not just the first per session. |