Add Sprites to OpenClaw
Available on Free and open source, on any release with the openclaw mcp command. You need a Sprites account with Google Analytics 4 already connected — the connector acts on that connection, so OpenClaw never handles a GA4 credential.
Register the server
OpenClaw keeps MCP servers in the mcp.servers block of its config. The CLI writes the entry for you; the MCP page of the Control UI does the same. Set the transport explicitly.
Terminalopenclaw mcp set sprites '{"url": "https://mcp.sprites.ai/mcp", "transport": "streamable-http", "auth": "oauth"}'Sign in
With the Gateway running, start the login and open the link it prints. Sign in to Sprites and approve; OpenClaw stores the grant and refreshes it.
Terminalopenclaw mcp login spritesProbe it
Check the connection end to end before you rely on it from a chat.
Terminalopenclaw mcp status --verbose openclaw mcp doctor sprites --probe
What permissions this needs
Connecting Google Analytics to OpenClaw yourself means a Google Analytics Data and Admin APIs integration, and these are the permissions and gates it runs into. Through Sprites you sign in with OAuth instead, with no developer token or app review of your own.
analytics.readonly
Read reports and configuration through the Data and Admin APIs.
analytics.edit
Change configuration, such as audiences or a Google Ads link setting.
Property ID
Every report runs against one numeric GA4 property.
Cloud project and credentials
The self-hosted route needs both APIs enabled on your own Google Cloud project and application-default credentials from the gcloud consent flow.
What Sprites asks for when you connect
Google sign-in for analytics.readonly and analytics.edit on the Sprites Google Cloud project.
What you skip
You enable no APIs, create no service account and run no gcloud consent flow. OpenClaw signs in to Sprites with OAuth and never holds a GA4 credential.
Run the first prompt
Ask OpenClaw this. It routes to a Sprites door, which reads your Google Analytics 4 account and answers — no account to name, no confirmation to give first.
- With Sprites, what happened to conversions last week and which channel caused it?
- Ask Sprites for our top 10 landing pages by conversion rate this month.
- Use Sprites to compare organic and paid revenue quarter over quarter in GA4.
- Have Sprites break down ecommerce revenue by product for the last 30 days.
- With Sprites, set up a Monday brief on traffic, conversions and the biggest change.
openclaw mcp doctor sprites --probe connects and lists the Sprites tools. Status alone does not connect; the probe does.
What OpenClaw can do with Google Analytics 4
The same doors, whichever client you are in. It lives in the chat apps you already use, so a spend check or a weekly report arrives where you message it, with any change waiting in Sprites for your approval.
Ask in English, get the report run
No explorations, no dimension picker. The question becomes a GA4 query and the answer comes back with the numbers attached.
Channel attribution that names a cause
The channel that accounts for the change, with its share of it stated, not a chart of everything that moved.
Item-scoped ecommerce
Revenue and units per product, not just per session — the breakdown GA4 buries.
Landing pages that earn and landing pages that leak
Entry page performance against conversions, ranked, with the drop-off stated.
Join it to the ad accounts
Because the same connector reads Google Ads and Meta, a GA4 answer can be checked against what the platforms claim.
A standing weekly read
A scheduled brief that runs against GA4 and messages you only when a number breaks trend.
How approvals work here
OpenClaw renders tool results as text, so a GA4 change comes back written out rather than as a card. The approval waits for you in Sprites — open it there and the same run continues. Nothing is applied until you approve it.
What it reads
- Sessions, users, engagement and conversions by any GA4 dimension
- Channel, source, medium and campaign attribution
- Landing pages, events and funnels
- Item-scoped ecommerce: revenue and units per product
What it can change
- Nothing. GA4 is read-only through this connector by design
- Changes it recommends land on the ad or SEO channel they belong to, each with its own approval
When it does not work in OpenClaw
Three things go wrong in this client specifically, and each has a one-line fix.
The server is registered but never connects.
Without a transport OpenClaw defaults to SSE. Set "transport": "streamable-http" on the entry.
Status shows authorization-required.
Run openclaw mcp login sprites again. To start clean, run logout first, then login.
A static Authorization header does nothing.
Headers are ignored while auth is oauth. Leave headers off; the OAuth grant carries the identity.
Google Analytics 4 and OpenClaw: questions
Which URL do I paste into OpenClaw?
https://mcp.sprites.ai/mcp. There is one endpoint and every client uses it — every OAuth grant is bound to exactly that address, so a variant of it will not be honoured.
Can OpenClaw change my Google Analytics 4 account without asking?
OpenClaw renders tool results as text, so a GA4 change comes back written out rather than as a card. The approval waits for you in Sprites — open it there and the same run continues. Nothing is applied until you approve it.
Do I need a Google Analytics 4 API key or developer token?
No. Google Analytics 4 is connected once inside Sprites through Google Analytics 4, and the connector acts on that connection. You enable no APIs, create no service account and run no gcloud consent flow. OpenClaw never sees a credential for it.
Why OpenClaw for Google Analytics 4 specifically?
It lives in the chat apps you already use, so a spend check or a weekly report arrives where you message it, with any change waiting in Sprites for your approval.
Can it change anything in GA4?
No. GA4 is read-only through this connector on purpose. If the answer implies a change, it is proposed on the channel that owns it — an ad account, a page — with its own approval.
Do I need to know GA4 dimensions and metrics?
No. You ask the question; Sprites picks the dimensions, runs the report and states what it queried so you can check the working.
Keep going
The same OpenClaw connector reaches every other channel — nothing else to add.
Google Analytics 4, from OpenClaw
Paste one URL, sign in once, and the next GA4 question you ask OpenClaw gets answered from the live account.