ga4_get_property
Google Analytics 4 read low risk
Part of the GA4 Analytics Agent.
What it does
Read one GA4 property's settings (Analytics Admin API v1beta properties.get): display name, time zone, currency, industry category, service level (standard or 360), property type, its account and creation time. Read-only. Use before reporting to label currency and the reporting time zone correctly. With several Google logins, the first one that can see the property answers. Returns {property_id, display_name, time_zone, currency_code, industry_category, service_level, property_type, account_id, create_time}.
When to use it
Use to read a GA4 property's settings (time zone, currency, industry) before reporting on it, or to confirm a property id the user gave is the right one.
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
Report revenue in the property's currency and dates in its time zone, as returned.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
not_found | No such GA4 property. | Find the id with ga4_list_accounts_properties. | no |
invalid_argument | property_id is not a GA4 property number. | 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 Google Ads customer id is not a GA4 property id; look the property up instead.
- properties/123 and 123 are the same property.