capabilities.work

List Properties and Run Realtime Report

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

Recipe · 2 steps

List Properties and Run Realtime Report

Confirm a GA4 property exists, then run a realtime report against it.

  1. List the GA4 properties under the account so the target property can be confirmed before running the realtime report.
  2. Run a realtime report returning active users broken down by country for the present moment through the last thirty minutes.
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).
For your developer

Arazzo workflow google-analytics:list-properties-run-realtime, 2 operations: analyticsadmin.properties.list → analyticsdata.properties.runRealtimeReport. Specs on APIs.io.