Add Sprites to n8n
Available on n8n Cloud and self-hosted, on a release recent enough to show Server Transport and the MCP OAuth2 credential. You need a Sprites account with Google Analytics 4 already connected — the connector acts on that connection, so n8n never handles a GA4 credential.
Add the MCP Client Tool
Open the workflow, and on the AI Agent node add a tool and choose MCP Client Tool. It is a sub-node: the agent decides when to call it.
n8nAI AgentTools+MCP Client ToolPoint it at Sprites
Paste the endpoint, set Server Transport to HTTP Streamable and Authentication to MCP OAuth2.
MCP Client ToolEndpointhttps://mcp.sprites.ai/mcpServer TransportHTTP StreamableAuthenticationMCP OAuth2Create the credential and connect
Create an MCP OAuth2 credential with Use Dynamic Client Registration on and the endpoint as Server URL. Leave Resource URL empty so it is discovered, click Connect to MCP, and sign in to Sprites.
Spriteswants access on behalf of n8n- Read your connected ad accounts and site data
- Draft campaigns, creatives and pages for your approval
- Apply only the changes you approve
AllowCancelChoose the tools
Leave Tools to Include on All, or select only the doors this workflow needs, such as analyze for a weekly report.
What permissions this needs
Connecting Google Analytics to n8n 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. n8n signs in to Sprites with OAuth and never holds a GA4 credential.
Run the first prompt
Ask n8n 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.
The credential says Account connected, and Tools to Include lists the Sprites doors. A test run shows the call in the execution log.
What n8n can do with Google Analytics 4
The same doors, whichever client you are in. Scheduled and triggered workflows: a Monday report or a spend alert runs with no chat open, and any change it proposes still waits in Sprites for a person.
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
n8n 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 n8n
Three things go wrong in this client specifically, and each has a one-line fix.
The node only offers an SSE Endpoint field.
That is an older n8n. Update until the node shows Server Transport with HTTP Streamable.
Connect to MCP fails with a redirect error.
Use the OAuth Redirect URL exactly as the credential shows it. Do not edit it, and make sure the n8n base URL it is built from is public.
A scheduled run starts failing auth.
Reconnect the credential. The grant can be revoked from Sprites, and a run never applies a change on its own anyway.
Google Analytics 4 and n8n: questions
Which URL do I paste into n8n?
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 n8n change my Google Analytics 4 account without asking?
n8n 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. n8n never sees a credential for it.
Why n8n for Google Analytics 4 specifically?
Scheduled and triggered workflows: a Monday report or a spend alert runs with no chat open, and any change it proposes still waits in Sprites for a person.
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 n8n connector reaches every other channel — nothing else to add.
Google Analytics 4, from n8n
Paste one URL, sign in once, and the next GA4 question you ask n8n gets answered from the live account.