Google Analytics Action
Queries Google Analytics 4 from a flow. Two operations — a report over a date range, and the realtime view — both returning rows you can feed to a Sheets node, a Slack summary, or an AI Node that writes the weekly commentary for you.
Setup
A Google credential with the analytics scope, plus the GA4 property you are querying. The property id is the numeric one from GA4's admin screen, not the measurement id that starts with G-.
Mode — action or AI toolkit
The Mode selector decides who drives the node. In Action mode you pick one operation and fill its fields, and the node does that every time it runs. In AI toolkit mode the operations become tools an AI Node can call, and the model chooses which one and with what arguments.
Operations
The Operation dropdown decides what the node does and which fields appear under it. These are the exact values the API validates against:
| Value | In the dropdown | What it does |
|---|---|---|
| runReport | Run report | Metrics over a date range, broken down by dimensions. |
| runRealtimeReport | Run realtime report | What is happening right now — the last 30 minutes. |
Gotchas
- Metrics and dimensions have to be compatible. GA4 rejects combinations it cannot compute, and the error names the offending pair — it is not a permissions problem.
- Realtime is a different surface with a smaller set of dimensions and a window of minutes, not days.
- Sampling and thresholding are GA4's, not ours: low-traffic segments can come back empty for privacy reasons rather than because there is no data.
- The rows come back iterable, so a Loop or Aggregator downstream can walk them.