ga4_list_key_events
Google Analytics 4 read low risk
Part of the Conversion Tracking Agent.
What it does
List a GA4 property's key events (Analytics Admin API v1beta properties.keyEvents.list, all pages): event name, counting method (once per event or once per session), default value and currency, whether it is custom, and when it was created. Key events are GA4's conversions (the old conversionEvents API is deprecated). Read-only. Use to see which events count as conversions before reporting keyEvents. Returns {property_id, key_events:[...], count, truncated}.
When to use it
Use to list which events a GA4 property counts as key events (conversions) before reporting keyEvents, or to explain why GA4 and Google Ads conversion counts differ.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
property_id | string | yes | GA4 property number (e.g. 123456789) or properties/123456789. From ga4_list_accounts_properties. |
Safeguards
Policy
GA4 is a separate Google product, scope and property from Google Ads: read only what the connected Google account is authorized to see (analytics.readonly), never another tenant's properties, and never merge GA4 figures with Google Ads figures without labeling each.
Reminder
Key events are GA4's own conversion definitions; do not present them as Google Ads conversion actions.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
not_found | No such GA4 property. | Find the id with ga4_list_accounts_properties. | no |
permission_denied | The connected Google account has no access to that property. | Ask the property's admin to add that Google account as Viewer (GA4 Admin -> Property access management). | no |
platform_unavailable | The Google Analytics Admin API is not switched on for Scalix yet. | Tell the user it is on Scalix's side; meanwhile ask them for the GA4 property id (GA4 Admin -> Property settings) and use the ga4_run_* tools with it. | no |
needs_reauth | The Google connection's token is dead, or it was made before Scalix asked for Google Analytics. | Reconnect Google in the Scalix dashboard and accept the Google Analytics permission. | no |
rate_limited | Google Analytics rate limit hit. | Wait a minute, then call again. | yes |
Edge cases
- A property with no key events returns an empty list.
- Counting method ONCE_PER_SESSION counts one per session however often the event fires.