Connect OpenClaw to Google Analytics 4
Let an OpenClaw agent run reports, realtime queries and funnel analyses against Google Analytics 4 properties, with no credentials handed to the agent.
Google Analytics 4 is the default measurement tool for websites and apps, tracking sessions, events, conversions and the channels that drive them. Marketers, product managers and founders all rely on it, and all of them know the friction: building the same exploration again because it did not save, exporting a report to a spreadsheet to compare two date ranges, and answering “how did the launch page do?” by clicking through five screens. The data is there; getting a straight answer out of it takes time.
With Claworc’s External Connections, an OpenClaw agent can query
Google Analytics 4 properties on your behalf. You sign in to Google once through a popup,
Composio holds the resulting token, and the agent gets an auto-generated
claworc-google_analytics skill that tells it which Google Analytics tools exist and how
to call them. The agent never sees a password, an OAuth token or an API key.
Tools available to OpenClaw agents
Section titled “Tools available to OpenClaw agents”Composio’s Google Analytics toolkit exposes 67 actions across the Data API and the Admin API. These are the ones an OpenClaw agent reaches for most often:
- List accounts and properties — see which accounts and properties the connected user can access, so the agent knows which property to query.
- Run reports — the workhorse: any combination of dimensions, metrics, date ranges and filters, returned as rows.
- Batch several reports — run multiple reports in one request, useful when comparing periods or segments.
- Realtime reports — active users and events from the last 30 minutes, for checking a launch or a campaign as it happens.
- Funnel reports — step-by-step drop-off through a sequence of events such as view product, add to cart, purchase.
- Discover dimensions and metrics — see what a property supports and confirm a combination is valid before running it.
- List key events — see which events the property treats as conversions.
Every tool is called through a small broker running next to the agent, so the agent only needs to describe what it wants done in plain language and let the skill handle the rest.
Use cases
Section titled “Use cases”Ask a question, get a number
Section titled “Ask a question, get a number”“How many sessions did the pricing page get last week compared with the week before, split by channel?” The agent looks up the property, runs a batch report with both date ranges, and replies with a small table and a sentence about what changed. No exploration to build, no export to reconcile.
Monday traffic summary
Section titled “Monday traffic summary”On a schedule, the agent runs reports for users, sessions, key events and top landing pages over the previous seven days, compares each to the prior week, and posts a short digest. It checks the property’s key events first, so the conversions it reports are the ones your property actually defines rather than a guess.
Funnel check after a release
Section titled “Funnel check after a release”After you ship a checkout change, ask the agent to run the purchase funnel for the three days before and after and tell you where drop-off moved. If something looks wrong, it can follow up with a realtime report to confirm events are still arriving from the new build.
Get started
Section titled “Get started”Connecting Google Analytics 4 takes three steps: an admin adds a Composio API key to
Claworc’s settings, you open the instance’s Settings tab, click + Add connection,
pick Google Analytics and sign in to Google. The claworc-google_analytics skill appears
in the instance a moment later. The full walkthrough, including the exact Composio
permissions the key needs, is in the
External Connections documentation.