How to connect Grok to Google Analytics

Connect one GA4 property in Ryze AI, add one MCP URL as a custom connector in Grok, then ask for channel reports, realtime numbers and visits from AI assistants.

Your MCP URL
https://connector.get-ryze.ai/mcp

Copies the link and opens grok.com/connectors, where you click New Connector, then Custom. See the steps

See pricing

By Ira Bodnar, Ryze AI · Updated · Connector tested November 14, 2026

Quick answer

The main way to connect Grok to Google Analytics 4 is the Ryze AI connector. Connect GA4 in Ryze AI with a Google login that has at least Viewer access and save the property, then go to grok.com/connectors, click New Connector, choose Custom, enter https://connector.get-ryze.ai/mcp and finish the Ryze AI sign-in. Grok then has 9 GA4 tools, and all of them only read.

  1. In Ryze AI open Integrations, click Connect on Google Analytics 4 and approve the Google screen
  2. Pick the Property for your workspace and click Save
  3. On grok.com/connectors click New Connector, then Custom, and enter the URL
  4. Sign in on the Ryze AI page, choose workspaces, click Allow connection and ask about your traffic

Grok to Google Analytics at a glance

FactDetail
Main way to connectThe Ryze AI connector, one public MCP address that grok.com, Grok Business, Grok Bot and Grok Build all take
Connector addresshttps://connector.get-ryze.ai/mcp
Google sideOne approval inside Ryze AI with the analytics.readonly scope. No Google Cloud project, service account or credentials file to set up
Sign-in on the Grok sideA Ryze AI page opens in the browser: sign in, pick the workspaces, click Allow connection. xAI's page calls this step completing any required authentication
GA4 tools Grok gets9, all reads: the account list, standard, pivot and realtime reports, Admin API reads and 4 reports on visits from AI assistants
Can Grok change the propertyNo. There is no GA4 write tool, and the Admin API tool sends GET requests only
GA4 role you needViewer or higher on the property. GA4 properties only, no Universal Analytics
Grok planxAI opens connectors to all Grok users. The X Subscription includes Grok Bot on Premium, Super and Ultra, not on Plus
Ryze AI pricePaid Ads at $89 a month with a 7-day free trial. Adding the connector costs nothing
Google's own routeanalytics-mcp, a Python server that runs on your computer. Google's pages do not name Grok as a client
CheckedConnector answered November 13, 2026. GA4 calls sent through it from Claude Code on November 14, 2026. No step inside Grok was run

Before you start

  • A Grok account. xAI says connectors on grok.com are available to all Grok users and lists custom MCP connectors as one of three kinds. On Grok Business and Enterprise a team admin has to add the connector in the console first. Grok Bot is a separate app that The X Subscription includes on Premium, Super and Ultra, and the Plus plan leaves out.
  • A Google login with GA4 access. The login needs at least Viewer access on a GA4 property. Universal Analytics is not supported. Keep every permission checked on the Google screen.
  • A Ryze AI workspace on a plan or free trial. Paid Ads is $89 per month with a 7-day free trial. The GA4 tools also work on SEO Starter ($129 per month, 3-day free trial) and Agency ($279 per month). Connecting is free, but without a plan the connector can only list workspaces and connect platforms.

How to connect Grok to Google Analytics on grok.com

Two steps happen in Ryze AI, three in Grok. The connector URL is the same for every user.

  1. Connect Google Analytics 4 in Ryze AI

    Sign in to the Ryze AI app, open Integrations in the left sidebar and find Google Analytics 4 under Analytics. Click Connect, sign in to Google and approve access with every requested permission checked.

  2. Pick the property

    Back in Ryze AI, pick the Property for this workspace (listed as account and property) and click Save. Until a Property is saved the card shows Require setup.

  3. Add a custom connector in Grok

    Go to grok.com/connectors and click New Connector, then select Custom. Enter the MCP server URL https://connector.get-ryze.ai/mcp. xAI requires the server to be reachable over the public internet, and this address is.

  4. Sign in on the Ryze AI page and allow the workspace

    Complete the authentication Grok asks for: sign in on the Ryze AI page, choose the workspace that holds your GA4 connection and click Allow connection.

  5. Ask your first question in Grok

    Grok discovers the Ryze AI tools and makes them available in conversations. Ask: List the GA4 properties I can access, then show sessions by default channel group for the last 28 days.

On its connectors page xAI asks only that you complete any required authentication once the URL is in. A second xAI page, on tunneling a custom server, adds that a server needing OAuth or API keys has that flow finished inside Grok. No xAI page names dynamic client registration. The Ryze AI sign-in and Allow connection page is what the Ryze AI help center describes for Grok, and Ryze AI on grok.com was not tested for this guide. If the GA4 tools are missing because you connected GA4 after adding the connector, remove the connector in Grok, add it again and start a new chat. The Ryze AI help center Grok page covers the client side.

Sources: xAI Grok connectors, xAI custom MCP tunneling, Ryze AI Google Analytics guide. Checked November 14, 2026.

Grok Business, Grok Bot and Grok Build

grok.com is the shortest route. The other surfaces take the same URL and the same Ryze AI sign-in. GA4 stays connected in Ryze AI, so the Google step does not repeat.

Grok Business and Enterprise (admin)

On a team plan the admin adds the connector in the console first. Adding or removing a connector takes Team Read-Write permissions, which xAI says team admins usually hold.

  1. Log in to console.x.ai, select the team and open Grok Business, then Connectors. xAI's Salesforce page labels the same menu Grok Enterprise.
  2. Click + Add Connector, select Other and enter https://connector.get-ryze.ai/mcp.
  3. Complete any required authentication.
  4. For connectors in general, xAI says members then link their own accounts on grok.com/connectors. Its steps for a custom server stop at the authentication step.

Grok Bot

The Ryze AI help center lists Ryze AI as a built-in app in the Grok Bot Connect apps catalog. xAI's public docs do not list it, and this was not verified. If the search finds nothing, the desktop app has Add a custom connector at the bottom of Connect apps: give it a name, pick the Remote HTTPS type, paste the URL above as the Server URL and click Add plugin. Anyone who added Ryze AI as a custom server earlier should uninstall that copy to avoid duplicate tools, as the Ryze AI help center advises.

  1. Open Connect apps from the Grok Bot sidebar. On the mobile app, tap your avatar at the top left, then Connect apps.
  2. Type Ryze AI in Search across apps and skills, open Ryze AI (developer: Ryze AI) and click Add.
  3. Your browser opens Ryze AI: sign in, choose workspaces and click Allow connection. xAI asks that a sign-in finish within about 10 minutes.
  4. When Authorization complete appears, click Open Grok Bot or Return to Grok Bot. xAI's own check is that the app now shows under Installed.
  5. Send the Bot a new message, or start a new chat as the Ryze AI help center suggests, and type @ to attach the app to a task.

App connections are account-wide and every Bot you run can use them, on the computer and the phone. A team connector policy can show an app as Disabled by team admin. xAI includes Grok Bot in The X Subscription Premium, Super and Ultra plans and leaves it out of Plus.

Grok Build CLI

Grok Build adds remote HTTP servers from a terminal.

  1. Run the command below.
  2. The browser sign-in starts on first use. Complete the Ryze AI sign-in.
  3. In the terminal interface, /mcps (or its alias /connectors) opens the MCP tab, where i authenticates an OAuth server. If the GA4 tools still do not load, grok mcp doctor ryze checks the setup and the connection.
grok mcp add --transport http ryze https://connector.get-ryze.ai/mcp

Grok Build keeps OAuth tokens in ~/.grok/mcp_credentials.json and names tools <server>__<tool>, so a GA4 tool appears as ryze__ followed by its name.

Grok and MCP: three products compared

Three xAI products take an MCP server, and each has its own rules. Grok Bot runs apart from grok.com and signs in with a Cursor account. This table sets the three side by side using only what xAI's pages print.

Questiongrok.comGrok BotGrok Build
Where the Ryze AI address goesThe connectors page: New Connector, then Custom. Team plans start in console.x.ai under Connectors with + Add Connector and OtherConnect apps for catalog apps. The desktop app adds Add a custom connector, and a Bot can add a server when you askgrok mcp add in a shell, or a [mcp_servers.ryze] table in ~/.grok/config.toml, or in .grok/config.toml for one repo
Kinds of server it takesPublic addresses only. Localhost and private network addresses are refused, and xAI points to a tunnel for thoseRemote HTTPS by URL, or Command, which runs on the Bot's cloud computerRemote servers by URL, plus local stdio commands written after --
How sign-in worksComplete any required authentication. The tunneling page names OAuth and API keys for custom serversA browser login after Authorize or Authenticate, within about 10 minutes. An OAuth Client ID is optionalBrowser OAuth on first use. Tokens are kept in ~/.grok/mcp_credentials.json
Headers or a keyNo field beyond the server URL is describedOptional HTTP headers on the desktop form. The page does not say what they are for--header, a headers map, bearer_token_env_var, or a token file read on every request
Approval before a GA4 callNone described. Grok uses a connector's tools when a question relates to that serviceAuto Review, on by default, checks each action and shows Allow once, Always allow or Deny when it wants an OKAsk mode is the default and prompts for anything not yet allowed. MCPTool rules allow or deny one tool, and deny wins
Turning one tool offNot describedSingle app tools can be switched on or offA deny rule for that tool. grok mcp disable, or Space in /mcps, pauses the whole server
Plan namedConnectors are open to all Grok usersPremium, Super or Ultra on The X Subscription. Plus does not include itNo plan rule is printed for MCP servers
Where you manage itgrok.com/connectors, where xAI's connector pages name a Disconnect buttonThe connected count next to the Connect apps title, with Authenticate, Reconnect and Remove/mcps, grok mcp list and grok mcp remove ryze

SpaceX announced on February 2, 2026 that it had acquired xAI, and xAI's documentation now names the company SpaceXSI. Product names such as xAI Console keep the old name, and so does this guide.

Sources: xAI's Grok connectors, connector management, Grok Bot apps, Grok Bot approvals, Grok Bot plans, Grok Build MCP servers and Grok Build permissions, checked November 14, 2026, and the Ryze AI help center Grok page.

What Grok can reach in Google Analytics

Two sign-ins are involved: Google for GA4 access and Ryze AI for the connector. Three settings decide what it can reach.

Which property
You pick a Property for the workspace after connecting, and the Google login must hold at least Viewer on it. Several Google logins can join one workspace with Add one more account, each with its own Property, and one is the primary, set with the star.
What Grok can change
Nothing in GA4. The connector asks for the read-only Google Analytics scope, and all 9 tools are read tools, so Grok cannot create or edit properties, key events or audiences.
Which workspaces Grok sees
On the Ryze AI sign-in page you choose workspaces and click Allow connection. The help center advises one workspace per business and a separate workspace for each client.

Scopes Ryze AI requests

Ryze AI requests one Google Analytics scope plus basic profile scopes. Keep every requested permission checked on the Google screen.

TaskScope or access
Run reports, pivot reports and realtime reportsanalytics.readonly, with Viewer access on the property
Read key events, custom dimensions and audiencesanalytics.readonly (Admin API read, GET only)
List accounts and propertiesanalytics.readonly on the connected Google login
Create, edit or delete GA4 settingsNot available: the connector has no GA4 write tools

Google scopes behind the connection

What Grok can see in GA4 depends on the scopes approved on Google's consent screen and the role your login holds on the property. Ryze AI asks for the four scopes below, and the connect steps need no Google Cloud project or OAuth client of your own. The middle column quotes Google's scope list.

ScopeGoogle's descriptionIn practice
analytics.readonlySee and download your Google Analytics dataLets Ryze AI run reports and read property settings for Grok. Google's runReport and accountSummaries.list methods both accept it
openidAssociate you with your personal info on GooglePart of the basic profile. It opens no GA4 data
emailSee your primary Google Account email addressBasic profile as well, with no access to reports
profileSee your personal info, including any personal info you've made publicly availableBasic profile, no access to reports

Not requested: analytics.edit, which Google describes as Edit Google Analytics management entities, and analytics.chatbot.read, the scope for Google's Ask Advisor chat method. So Grok cannot create or change anything in GA4 through Ryze AI, even when your login is a Marketer or an Editor. Role restrictions carry through too: with No Cost Metrics or No Revenue Metrics on your access, Google withholds those metrics from API calls, and Grok will not see them through any connector.

Sources: Ryze AI Google Analytics guide, Google OAuth 2.0 scopes, GA4 roles and data restrictions, Data API runReport reference, Admin API accountSummaries.list. Checked November 14, 2026.

Removing access

To stop Grok from reaching GA4, disconnect Google Analytics 4 on its card in Ryze AI, or remove Ryze AI from your Google Account's third-party access page. On the Grok side, remove the Ryze AI connector on grok.com/connectors (admins remove the team connector in the console), choose Remove on the app in Grok Bot, or run grok mcp remove ryze in Grok Build.

What Grok can do in Google Analytics

Ryze AI exposes 9 GA4 tools to Grok, all read-only. Four of them report on traffic from AI assistants.

ToolTypeWhat it does
google_analytics__runRawReportReadRuns a GA4 Data API report with chosen dimensions, metrics, named date ranges, filters and ordering.
google_analytics__runPivotReportReadRuns a GA4 Data API pivot-table report.
google_analytics__runRealtimeReportReadRuns a realtime report covering the last 30 minutes.
google_analytics__getAiTrafficByEngineReadReturns traffic from AI referrers grouped by source engine and compared with a prior period.
google_analytics__getAiTrafficDailyReadReturns daily traffic from AI referrers such as ChatGPT and Perplexity.
google_analytics__getAiLandingPagesReadLists the top landing pages that receive AI-referred traffic, up to 200 rows.
google_analytics__getAIReferralsReadLists AI referral sources with their sessions and conversions.
google_analytics__runAdminReadReadReads a GA4 Admin API resource such as key events, custom dimensions or audiences. It is GET only.
google_analytics__listAccountSummariesReadLists the GA4 accounts and properties the connected Google login can access, which gives Grok the property IDs.

Since every GA4 tool reads, no approval setting can change anything in GA4. The prompts Grok shows still differ by product. On grok.com xAI describes no approval step: Grok uses a connector's tools whenever a question relates to that service. Grok Bot's Auto Review checks each action and shows a card with Allow once, Always allow and Deny when it wants your OK, and single app tools can be switched off there. Grok Build starts in Ask mode, and a deny rule with the MCPTool filter can keep a tool from running. The Ryze AI chat has its own Tool approvals picker, which starts on Skip all approvals. Scheduled tasks run without an approval step.

Limits in numbers

Google applies most of these limits to its Data API and Admin API, so they hold for any server that calls GA4. Figures are for a standard property unless a row names Analytics 360. The last column names the source of each figure.

LimitFigureSource
Tokens per day200,000 per standard property and 2,000,000 per Analytics 360 property, reset at midnight Pacific timeGA4 Data API quotas
Tokens per hour40,000 per property (400,000 on 360). One Google Cloud project may use 14,000 of them per property per hourGA4 Data API quotas
Requests running at once10 per property, 50 on 360GA4 Data API quotas
What a request costsMost cost 10 tokens or fewer. More rows, more fields, complex filters, long date ranges and detailed dimensions such as pagePath cost moreGA4 Data API quotas
An empty quota bucketFurther requests to that property return 429 RESOURCE_EXHAUSTED. Hourly buckets refill within the hourGA4 Data API errors
Failed requests10,000 per project and property in any 15-minute window, counting every answer other than 200 or 500GA4 Data API quotas
Rows per report10,000 when you name no limit, 250,000 at most in one request, with offset for the next pagerunReport reference
Fields per reportUp to 9 dimensions per Google's guide to building a report. In the November 14, 2026 test the API also refused an 11th metric and a 5th date rangeCreate a report
Realtime windowFrom now back 30 minutes, or 60 on 360Realtime reports
Data freshnessIntraday data usually arrives in 2 to 6 hours and daily data in 12 hours. Google says processing can take 24 to 48 hours, and figures may change meanwhileGA4 data freshness
Admin API1,200 requests a minute and 600 per user per minuteAdmin API quotas
Ryze AI tool inputsgetAiLandingPages returns 200 rows at most, and runRawReport pages through its resultsRyze AI tool list
Grok Bot connector timeoutA connector that stops answering times out after three minutes, per the release note of August 12, 2026Grok Bot changelog
Grok Build timeoutsstartup_timeout_sec defaults to 30 seconds and tool_timeout_sec to 6,000 seconds, and both can be set per serverGrok Build MCP servers
Grok Build tool outputMCP tool output was capped at 20 KB in May 2026; the cap became configurable in July 2026 with the default unchangedGrok Build changelog
Connectors on grok.comxAI prints no maximum for connectors or for tools per connectorGrok connectors

The Google and xAI pages in this table were checked November 14, 2026.

Tested calls

Claude Code sent these 8 calls through the Ryze AI connector on November 14, 2026, on the default read-only connection to a standard GA4 property. Grok did not send them. Two calls asked for data and worked, and six were built to fail. The property belongs to a real account, so the table shows field names and outcomes only.

ToolWhat was sentWhat came back
listAccountSummariesThe workspace and nothing elseA list of accountSummaries, each holding propertySummaries with property, displayName, propertyType, parent and canEdit
runRawReportSessions for the day before the test, with returnPropertyQuota set to trueOne row with metricHeaders, rowCount and metadata for currency code and time zone, plus a propertyQuota block whose totals match Google's standard-property limits
runRawReporttrafficSauce, a dimension that does not exist400 INVALID_ARGUMENT, with manualSource offered as the closest name
runRawReportsessionz, a misspelled metric400 INVALID_ARGUMENT, with sessions offered instead
runRawReportA property ID that does not existThe status not_allowed, returned as a normal tool result
runRawReport10 dimensions in one report400 INVALID_ARGUMENT
runRawReport11 metrics in one report400 INVALID_ARGUMENT
runRawReport5 date ranges in one report400 INVALID_ARGUMENT

First 3 prompts to run

Each prompt below describes what to ask. Answers come from your own GA4 property, so the page shows no sample numbers.

1. Find the property and compare channels

List the GA4 properties I can access, then show sessions, key events and revenue by default channel group for the last 28 days against the 28 days before.

Tools used: google_analytics__listAccountSummaries, google_analytics__runRawReport

What comes back: A list of properties, then a table of channels with two date ranges side by side. Revenue is zero if purchase events are not set up in GA4.

2. See visits from AI assistants

Show traffic from AI assistants by engine against the prior period, and list the top landing pages that receive it.

Tools used: google_analytics__getAiTrafficByEngine, google_analytics__getAiLandingPages

What comes back: Sessions per AI engine such as ChatGPT or Perplexity with a comparison period, then up to 200 landing pages. GA4 reports visits that arrive from assistants, not whether they mention your brand.

3. Check what is live right now

Run a realtime report and show active users by country and by page for the last 30 minutes.

Tools used: google_analytics__runRealtimeReport

What comes back: A short table of current activity from your own property. Nothing in GA4 is changed.

Replace the names in the prompts with ones from your property. xAI describes no approval step on grok.com, and every one of these is a read.

10 jobs to hand to Grok

Ten jobs to hand to Grok, each with the tool that answers it. listAccountSummaries and runRawReport were called from Claude Code in the test on November 14, 2026. The other tools were loaded and left uncalled, because they would have returned data from a real account. The last job is one this connection cannot do.

JobWhat to ask GrokToolWorks on the default connection
Property IDsList the GA4 accounts and properties my Google login can read, with the ID of each property.google_analytics__listAccountSummariesYes, run in the test
Channel trendPut sessions, key events and revenue by default channel group for last month next to the month before, and name both ranges.google_analytics__runRawReportYes. Name each date range so the two months stay apart
Revenue by sourceBreak purchase revenue and purchases down by source and medium for this quarter.google_analytics__runRawReportYes, when purchase events are tracked and your role has no No Revenue Metrics restriction
Device pivotMake a pivot table of sessions with channels as rows and device categories as columns.google_analytics__runPivotReportYes
Right nowWho is on the site in the last 30 minutes, by country and device?google_analytics__runRealtimeReportYes, for 30 minutes back only
Setup auditShow the key events, custom dimensions and audiences configured on this property.google_analytics__runAdminReadYes
AI enginesWhich AI assistants sent visits in the last 30 days, and how does each compare with the 30 days before?google_analytics__getAiTrafficByEngineYes
AI visits by dayChart daily visits from assistants such as ChatGPT and Perplexity for this month.google_analytics__getAiTrafficDailyYes
AI landing pages and sourcesWhich pages do AI-referred visitors land on, and what sessions and conversions does each AI referral source bring?google_analytics__getAiLandingPages, google_analytics__getAIReferralsYes. Landing pages stop at 200 rows
Add a key eventTurn the form_submit event into a key event.NoneNo. The connection only reads, so make this change in GA4 Admin

6 ways to connect Grok to Google Analytics

Several ways can put GA4 data in front of Grok, but only some vendors name a Grok product on their own pages. This guide treats the Ryze AI connector as the main way: Google is approved once inside Ryze AI, one public address goes into every Grok product, and Grok gets 9 read tools with nothing to install. The other ways were read on their own pages on November 14, 2026, and none was tried in Grok.

WayGrok products namedSetup in GrokWhat it reaches in GA4Price
Ryze AI connector (the main way)grok.com, Grok Business once an admin adds it, Grok Bot and Grok BuildNew Connector, then Custom, with https://connector.get-ryze.ai/mcp. In Grok Bot, the Connect apps catalog or a custom connector. In Grok Build, grok mcp add --transport http. Then the Ryze AI sign-in9 read tools, 4 of them for visits from AI assistants. Nothing in GA4 can be changedPaid Ads at $89 a month with a 7-day free trial. Connecting costs nothing
Google's analytics-mcp 1.1.0, open sourceNone. Google's docs page names Antigravity, Claude Desktop, Claude Code and Cursor, and its README names Gemini CLI, Gemini Code Assist and Claude CodeA command Grok Build could start on your computer, as xAI documents for local stdio servers: uvx --from analytics-mcp google-analytics-mcp, with GOOGLE_APPLICATION_CREDENTIALS and GOOGLE_CLOUD_PROJECT. Needs Python 3.10 or higher, a Google Cloud project with the Analytics Admin API and Data API turned on, and Application Default Credentials. Not tried in GrokReads by default: 9 tools on Google's docs page, 13 in the README, with funnel and conversions reports. Three create tools (annotation, custom dimension, key event) work only with --allow-write and the analytics.edit scopeNo price stated. Apache-2.0 license
ComposioGrok Bot and Grok Build, which Composio links from its Google Analytics pageAdd https://connect.composio.dev/mcp as a remote server (grok mcp add in Grok Build, Add a custom connector in Grok Bot), sign in to Composio and approve GA4 through its managed Google app82 tools that read and write, among them Create Audience and Archive Custom DimensionFree up to 10,000 tool calls a month. Standard is $18 per seat per month
Zapier MCPGrok and Grok Bot, both on Zapier's client listAdd Zapier as a connector and sign in, then choose the GA4 actions6 actions, such as Run Report for a Property and Create Conversion Event for a PropertyEach successful call uses 2 tasks and failed calls use none. The Free plan has 100 tasks a month
Windsor.aiNone. Its guides name Claude, ChatGPT, Gemini, Perplexity, Cursor, Copilot, Antigravity and others, and one titled how to connect Windsor MCP to any AIConnect GA4 as a data source in Windsor.ai, then add the Windsor connector in Grok by URL. Windsor's steps for Grok were not checkedGA4 read only. Claude's directory lists 19 tools for the whole Windsor connectorFree after a 30-day trial, with 1 data source, 1 account and the past 30 days. Basic is $23 a month
Coupler.ioNone. Its Google Analytics page lists Claude, ChatGPT, Gemini, Perplexity, Cursor, Copilot and OpenClaw, plus a Custom MCP routeBuild a GA4 data flow, then use the Custom MCP route: an access token sent as an Authorization: Bearer header. grok.com describes no header field, so this suits Grok Build, whose settings take a headers mapRead only, queried as SQL on a synced copy of GA4. Up to 10 metrics and 9 dimensions per data flowFree with manual refresh. Starter is $32 a month, or $24 billed annually

Options that do not fit Grok

  • analytics-mcp in HTTP mode. Since version 1.0.0 the same package can run as a multi-user HTTP server that you host, with a built-in OAuth 2.1 server. The README names only Google ADK, an agent framework, for this mode, and no chat assistant, Grok included. Its sign-in state sits in memory, so a restart means everyone signs in again.
  • Google Analytics agent skills. Google names Antigravity, Claude Code, Codex and Cursor for these instruction files, and Grok is not among them. They teach a coding agent to write Data API and Admin API code and carry no connection to your data.
  • The Ask Advisor chat method. properties.chat in the v1alpha Data API sends a question to the assistant inside Google Analytics and needs the analytics.chatbot.read scope. It is an API call for your own code, and Google names no assistant for it.
  • Google-hosted MCP endpoints. A Markdown copy of Google's reference lists an address for the Data API, but its HTML page returned 404 on November 14, 2026, so this guide treats it as not announced and says nothing more about it.

Which one to pick

Ryze AI is the best way to connect Grok to Google Analytics 4 when you want GA4 reports in a Grok chat with nothing to install or keep running, with one caveat: it only reads, so creating an audience, a key event or a custom dimension needs another route, and it has no funnel report tool. Choose Google's analytics-mcp if you already work with a Google Cloud project and Python, use Grok Build, and want Google's own code, funnel reports or opt-in writes. Grok Build prefixes every tool with its server name, so both servers can sit side by side. Composio and Zapier can also write to GA4 and suit teams that already use them for other apps. Windsor.ai and Coupler.io suit teams that already pipe marketing data through them.

Sources: Google Analytics MCP server docs, analytics-mcp on GitHub, analytics-mcp on PyPI, Google Analytics agent skills, Ask Advisor basics, Composio Google Analytics toolkit, Composio pricing, Zapier Google Analytics 4 MCP, Zapier MCP quickstart, Windsor MCP guides, Windsor.ai GA4 MCP, Windsor.ai pricing, Coupler.io Google Analytics MCP, Coupler.io pricing, xAI Grok Build MCP servers, Ryze AI Google Analytics guide. Checked November 14, 2026.

Grok, Google Analytics and MCP: dates that matter

DateWhat happened
May 6, 2024The Data API gained key event fields. conversions became a deprecated metric name, replaced by keyEvents.
June 28, 2024Google capped failed Data API requests at 10,000 per project and property in any 15-minute window.
November 2025Remote MCP tools became available on the xAI API, for developers and not for the Grok assistant.
February 2, 2026SpaceX announced that it had acquired xAI. xAI's documentation now uses the name SpaceXSI.
May 6, 2026xAI launched connectors on Grok Web, iOS and Android, including Bring Your Own MCP for custom servers.
May 25, 2026xAI announced Grok Build as an early beta and said MCP servers work in it out of the box.
August 11, 2026xAI announced Grok Bot, in beta.
September 14, 2026Google added properties.chat, the Ask Advisor method, to the v1alpha Data API.
October 12, 2026xAI introduced The X Subscription, one plan for Grok, Grok Bot, Cursor and X Premium.
October 22, 2026analytics-mcp 0.8.0 shipped the first write tool behind a new --allow-write flag.
November 3, 2026analytics-mcp 1.0.0 added a multi-user HTTP mode with OAuth 2.1 and left experimental status.
November 6, 2026analytics-mcp 1.1.0 added opt-in writes for custom dimensions and key events. It was still the newest release on November 14, 2026.

Sources: Data API changelog, analytics-mcp releases, analytics-mcp on PyPI, xAI release notes, xAI joins SpaceX, Grok connectors launch, Grok Build launch, Grok Bot launch, The X Subscription. Checked November 14, 2026.

How this guide was tested

Two rounds of checks stand behind this guide. The connector was checked on November 13, 2026, and GA4 calls went through it on November 14, 2026. Nothing was run inside Grok.

What was runWhat came back
The connector address with no sign-in (November 13)HTTP 401 and a WWW-Authenticate header that points to the sign-in details.
The two discovery files on the connector's host (November 13)Both loaded. They list the authorize, token and register endpoints, the authorization code and refresh token grants, PKCE with S256, and the scopes mcp:read and mcp:write.
The GA4 tool list, loaded from Claude Code through the connector (November 14)All 9 definitions loaded by their exact names, and no name contains a write verb.
Two GA4 reads (November 14)listAccountSummaries and a one-day runRawReport both worked. The report's propertyQuota totals matched the standard-property limits.
Six requests made wrong on purpose (November 14)Five came back as 400 INVALID_ARGUMENT and one as not_allowed. Their messages are in the errors table.

Not run for this guide: any step inside Grok. Nothing was done in grok.com, console.x.ai, Grok Bot or Grok Build, and no Grok account was used, so the Grok steps follow xAI's documentation as read on November 14, 2026, and the Grok Bot catalog steps follow the Ryze AI help center. The GA4 calls came from Claude Code, which reaches the same server and the same 9 tools. runPivotReport, runRealtimeReport, runAdminRead and the four AI-traffic tools were loaded and not called, because they would have returned business data from a real account. No call was made through Google's analytics-mcp, Composio, Zapier, Windsor.ai or Coupler.io, and no write was tried, since the connector has no GA4 write tool.

Grok and Google Analytics errors and fixes

The first part of this section is the table of messages Google returned in the test. The entries below it are setup problems on the Grok and Ryze AI side, with their fixes.

MessageWhat it meansWhat to do in Grok
Did you mean manualSource? Field trafficSauce is not a valid dimension. For a list of valid dimensions and metrics, see https://developers.google.com/analytics/devguides/reporting/data/v1/api-schematrafficSauce is not a GA4 dimension. The test sent it on purpose, and Google names the closest real one.Ask again with a real dimension such as sessionSource, or tell Grok to use the name Google suggests.
Did you mean sessions? Field sessionz is not a valid metric. For a list of valid dimensions and metrics, see https://developers.google.com/analytics/devguides/reporting/data/v1/api-schemasessionz is a misspelled metric, also sent on purpose.Use the suggested name. If you asked for conversions, ask for keyEvents, its current name.
User does not have sufficient permissions for this property. To learn more about Property ID, see https://developers.google.com/analytics/devguides/reporting/data/v1/property-id.The property ID does not exist, or your Google login has no role on it. Google gives the same answer for both.Ask Grok to run listAccountSummaries and take an ID from that list, or get the Viewer role from a property admin.
Requests are limited to 9 dimensions within a nested request. This request is for 10 dimensions.The report asked for one breakdown too many.Drop a dimension, or ask for two smaller reports.
Requests are limited to 10 metrics within a nested request. This request is for 11 metrics.A single report carries 10 metrics at most.Spread the metrics over two reports and ask Grok to put them side by side.
Requests are limited to 4 dateRanges. This request contains 5 dateRanges.A single report compares 4 periods at most.Keep to 4 periods, or use the date dimension across one long range.

Two more codes on Google's errors page did not come up in the test: 429 RESOURCE_EXHAUSTED when a quota bucket is empty, and 401 UNAUTHENTICATED when the credentials are not valid.

Setup problems

Grok does not list the GA4 tools
If GA4 was connected in Ryze AI after the connector was added, remove the Ryze AI connector in Grok, add it again and start a new chat.
The connector will not add on grok.com
grok.com needs the MCP server to be reachable over the public internet. The Ryze AI URL is public, so check for a typo in https://connector.get-ryze.ai/mcp. On Grok Business and Enterprise, ask a team admin to add it in the console first.
Grok Build does not load the ryze server
Run grok mcp doctor ryze, which xAI calls the first stop for configuration and connection problems, then press i on the MCP tab of /mcps to sign in again.
Grok Bot refuses the server because it is not on the network allowlist
xAI prints this when a team holds MCP servers to its Grok Bot network allowlist and the host is missing. A team admin adds it under Grok Bot settings, Network, Allowed destinations.
Ryze AI shows as Disabled by team admin in Grok Bot
A team connector policy blocks the app. Ask the team admin to allow it.
Tools show up twice in Grok Bot
You may have both the built-in Ryze AI app and an older custom server. Uninstall the custom copy.
The Ryze AI card says Require setup
No Property is saved yet. Open the Google Analytics 4 card in Ryze AI, pick the Property (listed as account and property) and click Save.
No properties are listed
The Google login you connected has no GA4 access. Use a login with at least Viewer access, or add one more account in Ryze AI.
Revenue shows as zero
GA4 reports revenue only when ecommerce tracking and purchase events are set up on the property. Check that in GA4.
The tools say a subscription is required
The GA4 tools need an active Ryze AI plan or free trial. Start the trial in Ryze AI, then retry.

Sources: GA4 Data API errors, GA4 Data API quotas, Grok Bot security, Grok Build MCP servers. Checked November 14, 2026.

Terms on this page

MCP server
A program that offers tools to AI assistants over the Model Context Protocol. The Ryze AI connector is one, reached at a public address.
Custom MCP connector
xAI's name for a server you add to Grok by URL, outside its built-in connectors and its catalog. The launch post called it Bring Your Own MCP.
Grok Bot and Grok Build
Grok Bot is a separate xAI app for desktop and phone whose Bots work on a cloud computer. Grok Build is xAI's coding agent for the terminal and adds servers with grok mcp add.
Property ID
The number that identifies a GA4 property. Every Data API request carries one; find it under Admin, Property Settings, or ask Grok to run listAccountSummaries.
Viewer role
The lowest GA4 role that can read data. Google says it can see settings and data, and it is all the Ryze AI connection needs.
Key event
An event for an action that is especially important to your business, which GA4 used to call a conversion. The API metric is keyEvents.
Default channel group
Google's rule-based sorting of traffic sources into channels such as Direct, Organic Search, Paid Search and Referral. In the API it is sessionDefaultChannelGroup.

Sources: modelcontextprotocol.io, xAI Grok connectors, Property ID, Key events, Default channel group, GA4 roles. Checked November 14, 2026.

Frequently asked questions

How do I connect Grok to Google Analytics?

Connect Google Analytics 4 in Ryze AI under Integrations and pick the Property. Then go to grok.com/connectors, click New Connector, choose Custom, enter https://connector.get-ryze.ai/mcp, sign in on the Ryze AI page, choose workspaces and click Allow connection.

Is there a Google Analytics MCP server for Grok?

Google publishes analytics-mcp, an open-source server that runs on your computer, and its pages do not name Grok as a client. The Ryze AI connector at https://connector.get-ryze.ai/mcp is a hosted option with 9 read-only GA4 tools that grok.com takes as a custom connector.

Does Google Analytics have an official MCP server?

Yes, Google publishes analytics-mcp on GitHub and PyPI. It left experimental status with version 1.0.0 on November 3, 2026 and was at 1.1.0 on November 14, 2026. It reads by default and has three write tools you can switch on with --allow-write.

What is the GA4 MCP server URL for Grok?

For the Ryze AI connector it is https://connector.get-ryze.ai/mcp, the same address for every user. Google's analytics-mcp normally has no address to paste, because the client starts it on your computer from a command.

Do I need a paid Grok plan?

xAI says connectors on grok.com are available to all Grok users, custom MCP connectors included. Grok Business and Enterprise need a team admin to add the connector first. Grok Bot is a separate app that The X Subscription includes on Premium, Super and Ultra, and not on Plus.

Do I need a paid Ryze AI plan?

Connecting is free, but the GA4 tools need an active plan or free trial. Paid Ads is $89 per month with a 7-day free trial, Agency is $279 per month, and SEO Starter is $129 per month with a 3-day free trial. Annual billing takes 30% off the first year.

What Google access do I need?

A Google login with at least Viewer access on a GA4 property. Ryze AI requests the read-only analytics.readonly scope plus basic profile scopes, and you should keep every requested permission checked.

Can Grok change my GA4 settings?

No. All 9 GA4 tools are read tools. The connector cannot create, edit or delete properties, key events, audiences or other settings, and the Admin read tool is GET only.

Does Grok ask before it runs a GA4 tool?

That depends on the Grok product. xAI describes no approval step on grok.com, Grok Bot's Auto Review shows an approval card when an action needs your OK, and Grok Build starts in Ask mode. Every GA4 tool reads, so none of them can change the property.

Can Grok see visits from ChatGPT and Perplexity?

Yes. Four of the tools report traffic from AI referrers by engine, by day, by landing page and by referral source with sessions and conversions. GA4 reports visits that arrive from assistants, not whether an assistant mentions your brand.

Does this work in Grok Bot and Grok Build?

Yes. In Grok Bot open Connect apps and add Ryze AI, or add the URL as a custom MCP server if it is missing. In Grok Build run grok mcp add --transport http ryze https://connector.get-ryze.ai/mcp and finish the browser sign-in.

Can I connect more than one GA4 property?

Yes. Connect several Google logins to one workspace with Add one more account, each with its own Property, and set one as primary with the star. Other properties stay reachable by naming them in chat. The help center advises a separate workspace for each client.

Does it support Universal Analytics?

No. Only GA4 properties are supported.

Is there a GA4 MCP server that also connects Search Console and Google Ads?

Yes. The Ryze AI connector serves its 9 GA4 tools from the same address as its Google Ads and Search Console tools, once those platforms are connected in the same Ryze AI workspace.

How do I disconnect Grok from Google Analytics?

Remove the Ryze AI connector on grok.com/connectors, or disconnect Google Analytics 4 on its card in Ryze AI, or remove Ryze AI from your Google Account's third-party access page.

Connect Google Analytics to Grok

The 9 Google Analytics 4 tools need an active Ryze AI plan or free trial: Paid Ads is $89 per month with a 7-day free trial, and SEO Starter is $129 per month with a 3-day free trial. Annual billing takes 30% off the first year.

Need help? Read the Ryze AI help center Grok page or email Ryze AI support.