Skip to content
For LLMsView as Markdown·

Google Analytics

Access GA4 reporting data including metrics, dimensions, and audience exports.

DetailValue
CategoryProductivity
Base URLhttps://analyticsdata.googleapis.com/v1beta
AuthenticationOAuth2 Client Credentials
Endpoints4
Connector keygoogle-analytics

Using Google Analytics in a workflow

  1. Go to Connections and click New Connection.
  2. Pick Google Analytics from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown — the full list is below.

Available endpoints

EndpointSummary
POST /properties/{propertyId}:runReportRun a GA4 report
POST /properties/{propertyId}:runRealtimeReportRun a realtime report
GET /properties/{propertyId}/metadataGet available dimensions and metrics
POST /properties/{propertyId}:batchRunReportsRun multiple reports in batch

Each endpoint is documented in full below. Use the outline on the right to jump to one.

POST /properties/{propertyId}:runReport

Run a GA4 report

DetailValue
Operation IDproductivity.runReport
MethodPOST
Path/properties/{propertyId}:runReport

Parameters

NameLocationTypeRequired
propertyIdpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Google Analytics connection from the Connection dropdown.
  3. In the Operation dropdown, select productivity.runReport.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Google Analytics API reference.

POST /properties/{propertyId}:runRealtimeReport

Run a realtime report

DetailValue
Operation IDproductivity.runRealtimeReport
MethodPOST
Path/properties/{propertyId}:runRealtimeReport

Parameters

NameLocationTypeRequired
propertyIdpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Google Analytics connection from the Connection dropdown.
  3. In the Operation dropdown, select productivity.runRealtimeReport.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Google Analytics API reference.

GET /properties/{propertyId}/metadata

Get available dimensions and metrics

DetailValue
Operation IDproductivity.getMetadata
MethodGET
Path/properties/{propertyId}/metadata

Parameters

NameLocationTypeRequired
propertyIdpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Google Analytics connection from the Connection dropdown.
  3. In the Operation dropdown, select productivity.getMetadata.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Google Analytics API reference.

POST /properties/{propertyId}:batchRunReports

Run multiple reports in batch

DetailValue
Operation IDproductivity.batchRunReports
MethodPOST
Path/properties/{propertyId}:batchRunReports

Parameters

NameLocationTypeRequired
propertyIdpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Google Analytics connection from the Connection dropdown.
  3. In the Operation dropdown, select productivity.batchRunReports.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Google Analytics API reference.