prokodo (GA4) icon

prokodo (GA4)

Query Google Analytics 4 (Data API) with a Service Account. Includes helpers for best post times and quick lists (landing pages, referrers).

Run Report

AI-generated

Summary

Run a custom Google Analytics 4 (GA4) report on a specified GA4 Property ID by sending an exact GA4 Data API runReport request body.

Inputs

  • Property ID (required) — The numeric GA4 Property ID from GA4 Admin → Property Settings to run the report against. Not the Measurement ID (G-XXXX).
  • Report Body (JSON) (required) — A JSON string representing the exact GA4 runReport request body, including dateRanges, dimensions, metrics, filters, orderBys, limits, and metric aggregations as defined by the GA4 Data API.
  • Return Property Quota — Boolean flag to request inclusion of the property's remaining quota (API token usage) in the response, useful for monitoring API limits.

Output shape

a single JSON object representing the GA4 runReport response as defined by the GA4 Data API.

The output JSON includes the full GA4 API response including rows with metrics and dimensions, any metadata, and if requested, the propertyQuota field. Errors related to authorization or request formatting are surfaced as node errors.

Discussion