ga4_list_annotations
Google Analytics 4 read low risk
Part of the GA4 Analytics Agent.
What it does
List a GA4 property's annotations (Analytics Admin API v1alpha properties.reportingDataAnnotations.list, all pages): the dated notes shown on GA4's charts, such as a site relaunch, a campaign launch, a tracking change or a traffic spike, including the ones Google adds itself (system_generated). Use it to explain a jump or drop in a report before guessing. Read-only. Returns {property_id, annotations:[{annotation_id, title, description, start_date, end_date, color, system_generated}], count, truncated}, newest first; a one-day note has start_date = end_date.
When to use it
Use when a GA4 or Google Ads trend changes suddenly, before a monthly report, or when the user asks what changed on the site or in tracking.
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
Annotations are notes people or Google wrote; quote them as notes, not as proof of a cause.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
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 |
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 |
invalid_argument | GA4 rejected the request, or a field is malformed; the message names the field. | Fix what the message names (check names with ga4_get_metadata) and call again. | no |
Edge cases
- A property with no annotations returns an empty list.