How to Connect Google Analytics 4 to OpenClaw
Query your Google Analytics 4 data directly from OpenClaw using Sequel’s MCP server. Ask questions in plain English, with no SQL, no dashboards, and no context switching.
Short answer
Connect Google Analytics 4 to Sequel, then add Sequel's MCP server to OpenClaw using the config on this page. OpenClaw can then query your live Google Analytics 4 data in plain English, with no connector code and no CSV exports. Both steps take a few minutes.
Everything you can ask OpenClaw about your Google Analytics 4 data.
Ask in plain English — Sequel translates it into a Google Analytics 4 query, runs it, and OpenClaw hands back the answer. No SQL, no dashboards, no CSV exports.
- What were my top 5 traffic sources last month?
- Which pages have the highest bounce rate this week?
- Show me week-over-week organic search traffic for the past 3 months
- What's the conversion rate by device type?
- Which campaign drove the most sessions in Q1?
How it works
Three steps to get started
Connect Google Analytics 4 to Sequel
In your Sequel dashboard, go to Connections and add Google Analytics 4. Sequel handles authentication and schema discovery automatically.
Add Sequel to the agent
Copy the Sequel MCP configuration into OpenClaw's settings file (shown below). Swap in your API key from Settings → API Keys.
Ask OpenClaw about your data
Restart OpenClaw and start asking questions. "What were my top 5 traffic sources last month?" — and get a real answer backed by live Google Analytics 4 data.
Why OpenClaw
What OpenClaw does with your Google Analytics 4 data
One agent, every data source
OpenClaw hosts the MCP servers your agents share. Add Sequel once and every agent on the gateway can query Postgres, BigQuery, ClickHouse, Google Analytics, Stripe, and more — joined across sources in a single answer.
Scope exactly what the agent can touch
OpenClaw decides which MCP tools an agent sees through tool profiles and per-server tool filters. Expose Sequel's read tools to your marketing agent and keep the surface tight — access is a config line, not a credential hand-off.
Self-hosted, with credentials that never leave Sequel
OpenClaw runs on your infrastructure and talks to Sequel over an authenticated HTTPS MCP endpoint. Your database passwords and OAuth tokens stay encrypted in Sequel; OpenClaw only ever holds a scoped Sequel API key.
Configuration
Add Sequel to OpenClaw
Place this in ~/.openclaw/openclaw.json and replace sql_your_api_key with a key from Settings → API Keys.
~/.openclaw/openclaw.json
{
"mcp": {
"servers": {
"sequel": {
"url": "https://api.sequel.sh/mcp",
"transport": "streamable-http",
"headers": {
"Authorization": "Bearer sql_your_api_key"
}
}
}
}
}Install
Install Google Analytics 4 MCP in OpenClaw
Pick your app and Sequel installs itself: a one-click link where the client supports it, that client’s own few steps where it doesn’t. Every route signs in with your Sequel account over OAuth, so there is no API key to copy and nothing to keep in sync.
Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex, Grok, Muse, dots and any other MCP app
Already have an MCP client?
https://api.sequel.sh/mcp
Add it as a remote (streamable HTTP) server and sign in when prompted. Skills come with it; nothing else to install. Manual setup per client
Choose your app
Claude
One click, opens in the app
Cursor
One click, opens in the app
VS Code
One click, opens in the app
ChatGPT
Turn on developer mode, then add Sequel. About two minutes.
Claude Code
Run one command, then sign in with /mcp.
Codex
Run one command, then sign in.
Gemini CLI
Run one command, then sign in with /mcp auth.
Grok
Add Sequel as a connector and sign in.
Grok Bot
Paste this to the bot. It registers Sequel and asks you to sign in.
Muse
Muse writes its own connector. One message is the whole setup.
dots
Add Sequel in ChatGPT; your dot picks it up with no extra step.
OpenCode
Add Sequel as a remote server from the OpenCode CLI.
Other MCP app
Any client that speaks remote MCP can connect with this URL.
Other AI agents
Connect Google Analytics 4 MCP to any agent
Claude
Use Claude to query your databases, explore schemas, and build analyses — all from one conversation.
Cursor
Query your databases and explore schemas without leaving your code editor.
ChatGPT
Connect ChatGPT to your databases and get data-backed answers in every conversation.
VS Code
Get database access inside VS Code Copilot without leaving your editor.
Windsurf
Give Windsurf's Cascade AI access to your databases — query data without leaving your editor.
Zed
Connect Zed's AI assistant to your databases for real-time data access while you code.
Gemini
Connect Google Gemini to your databases for grounded, data-backed answers.
Claude Code
Query your databases directly from the Claude Code CLI — without leaving your terminal.
Codex
Give OpenAI Codex CLI real-time database access for data-grounded coding sessions.
OpenClaw
Turn your self-hosted OpenClaw agent into a data analyst that queries every source you've connected.
Hermes
Give Nous Research's Hermes agent read access to every database and marketing tool you've connected.
Grok Bot
Tell your Grok bot to add Sequel and it can query every database and marketing tool you've connected.
Muse
Give Meta's Muse one message and it builds its own connector to every source you've put in Sequel.
dots
Add Sequel once in ChatGPT and your dot can answer data questions on its own, day and night.
Other data sources
Connect other sources to OpenClaw
PostgreSQL
Query your PostgreSQL database in plain English. No SQL required.
MySQL
Instant insights from your MySQL database. Ask in plain English.
ClickHouse
Real-time analytics on ClickHouse at any scale, in plain English.
BigQuery
Query petabytes of BigQuery data in plain English.
Google Sheets
Query, write, and manage Google Sheets with AI.
Google Search Console
Unlock your SEO data with natural language. No exports, no pivot tables.
MCP Server
Connect any MCP-compatible server and query it with AI in seconds.
Stripe
Ask your Stripe data anything. MRR, churn, refunds — answered in plain English.
Polar
Ask your Polar revenue, subscriptions, and usage data anything — in plain English.
Dodo Payments
Ask questions about payments, subscriptions, refunds and payouts in plain English.
PostHog
Ask your PostHog product data anything — with HogQL under the hood.
Mixpanel
Conversational analytics on your Mixpanel events, funnels, and retention.
Amplitude
Query your Amplitude taxonomy, funnels, and dashboards in plain English.
HubSpot
Your AI analyst for HubSpot contacts, deals, tickets, and pipelines.
Ahrefs
Ask your Ahrefs SEO data anything: backlinks, keywords, and traffic.
Apollo.io
Ask your Apollo.io prospects, contacts, and accounts anything, in plain English.
Cloudflare D1
Ask your Cloudflare D1 database questions in plain English.
Instagram organic analytics — post engagement, reach, and audience insights in plain English.
Frequently asked questions
How do I connect Google Analytics 4 to OpenClaw?
You need two things: (1) connect Google Analytics 4 to Sequel in your Sequel dashboard under Connections, and (2) add the Sequel MCP config to OpenClaw using the setup shown above. Once both are done, OpenClaw can query your Google Analytics 4 data directly.
What Google Analytics 4 data can OpenClaw access?
OpenClaw can access any data available through your Google Analytics 4 connection in Sequel. Use Sequel's search tool to discover available metrics and dimensions, then execute queries to pull the data you need.
Is my Google Analytics 4 data sent to OpenClaw's servers?
Query results are returned to OpenClaw as context within your conversation. Only the data you explicitly ask about is retrieved. Sequel never stores your query results permanently — they exist only for the duration of the tool call.
Do I need a Sequel account?
Yes. You need a Sequel account to connect Google Analytics 4 and generate an API key. Sign up free at sequel.sh — no credit card required. Then create a connection to Google Analytics 4 and generate an API key from Settings → API Keys.
Can I connect multiple Google Analytics 4 accounts?
Yes. Sequel supports multiple connections of the same type. If you have multiple Google Analytics 4 accounts or properties, add each as a separate connection in Sequel. OpenClaw will be able to query all of them.
How do I add Sequel to OpenClaw?
Add the snippet above to your OpenClaw config (`~/.openclaw/openclaw.json`) under `mcp.servers`, or run `openclaw mcp set sequel '{"url":"https://api.sequel.sh/mcp","transport":"streamable-http","headers":{"Authorization":"Bearer sql_your_api_key"}}'`, then reload the gateway. The Sequel CLI can do it for you with `sequel install openclaw`.
Which data sources can OpenClaw query through Sequel?
Any source you've connected in Sequel: PostgreSQL, MySQL, ClickHouse, BigQuery, Snowflake, Google Analytics, Search Console, Google Ads, Meta Ads, HubSpot, Stripe, and more. OpenClaw can only reach the connections your organization has set up.
Does Sequel use a remote (HTTP) MCP server?
Yes. Sequel is a hosted MCP server at https://api.sequel.sh/mcp. In OpenClaw that's a remote server — use `transport: streamable-http` and pass your key in the `Authorization` header, rather than a local stdio command.
Can I limit which agents or tools use Sequel?
Yes. OpenClaw controls which agents see MCP tools through tool profiles, and you can narrow Sequel to specific tools with per-server tool filters (`toolFilter` include/exclude) — so a dedicated marketing analyst agent gets exactly the access it needs and nothing more.
How do I connect Google Analytics to Sequel?
Click 'New Connection', select Google Analytics, give it a name, and click 'Connect with Google'. Sequel will request read-only access to your GA4 properties via OAuth. The entire process takes under a minute.
Which Google Analytics version does Sequel support?
Sequel connects to Google Analytics 4 (GA4). Universal Analytics (UA) is no longer supported by Google and is not available.
What metrics and dimensions can I query?
Sequel has access to the full GA4 Data API: sessions, users, pageviews, events, conversions, bounce rate, engagement rate, revenue, and hundreds of dimensions including source/medium, device, geography, and page path.
How current is the data?
GA4 data is typically 24–48 hours behind real-time. Sequel queries the GA4 Data API directly, so you see exactly what is available in GA4 at query time.
Connect Google Analytics 4 to OpenClaw today
Sign up free, connect your data sources, and start querying in minutes.