capabilities.work

Discover Property and Run Report

A 3-step recipe with Google Analytics. We can help you get access.

Recipe · 3 steps

Discover Property and Run Report

Discover an accessible GA4 property and run a core report against it.

  1. List summaries of every account accessible by the caller to confirm the target account is reachable.
  2. List the GA4 properties under the chosen account using a parent filter so a property can be selected for reporting.
  3. Run a core report for active users and event count broken down by country over the supplied date range.
What you'll need to have ready
  • accessToken: OAuth 2.0 bearer access token with an analytics read scope.
  • account: Account resource name to list properties under (e.g. accounts/123).
  • property: GA4 property resource name to report on (e.g. properties/1234).
  • startDate: Inclusive report start date as YYYY-MM-DD or NdaysAgo.
  • endDate: Inclusive report end date as YYYY-MM-DD, yesterday, or today.
For your developer

Arazzo workflow google-analytics:discover-and-run-report, 3 operations: analyticsadmin.accountSummaries.list → analyticsadmin.properties.list → analyticsdata.properties.runReport. Specs on APIs.io.