AdPlug
Guide · Google Analytics to Grok Bot

How to Connect Google Analytics to Grok Bot

To connect Google Analytics to Grok Bot, use AdPlug's remote MCP server: connect your GA4 properties in AdPlug, send your Bot one message that adds https://api.adplug.app/mcp/google-analytics, and approve each change from its preview. I built AdPlug's Google Analytics connector so your Bot can audit the tracking, build funnels and prepare GA4 changes you approve first, with the same connection working in Claude and ChatGPT. Grok Bot may also offer its own Google Analytics app in your account: a member of the Grok Bot team at SpaceXSI (formerly xAI) showed it in an X post on 19 November 2026.

Updated · 9 minute read

AdPlug's plug mascot standing its ground, holding the Grok and Google Analytics logos on ropes as they try to fly off.

Connect Google Analytics in one message

Connect Google Analytics in AdPlug first. Then paste this into a chat with your Bot and click Authorize on the card it posts.

Add a custom MCP server called AdPlug - Google Analytics at https://api.adplug.app/mcp/google-analytics

01

Grok Bot's own Google Analytics app, or AdPlug

A Bot can reach Google Analytics through its browser, through Grok Bot's own Google Analytics app if your account has it, or through a custom MCP server such as AdPlug's. Grok Bot's docs say to prefer a connector when one is available, because it's often more reliable than clicking through a website.

Ways to connect Grok Bot to Google Analytics
RouteWhat your Bot getsBest for
The Bot's browserGA4 on screen, after you sign in on the Bot's computerOne-off checks
Grok Bot's Google Analytics appAn official connect card, shown on 19 November 2026, that says Grok Bot always asks before making changesGrok Bot on its own, if the app is in your account and covers your job
AdPlugLive GA4 reports, 16 analyses, funnels, a tracking audit and 46 kinds of change, each previewed first. The same connection works in Claude and ChatGPTPPC consultants and agencies who audit and change GA4, in more than one assistant
Grok chat connectorThe same AdPlug address, added on grok.comQuestions in Grok chat rather than an always-on Bot
Google also publishes an open-source Google Analytics MCP server. It runs on your own computer with your own Google Cloud credentials unless you host it, and it's read-only by default.

02

Is it safe to connect Google Analytics to Grok Bot?

Yes, as long as the Bot asks you before each change. A Bot can keep working while you're away, which is the point of it, and also the reason every GA4 change should wait for you.

  • Google's own sign-in. You sign in on Google's screen, so AdPlug never sees your Google password. Google verified AdPlug's app for Google Analytics access on 23 November 2026.
  • Preview first. Every change starts as a preview that shows what's there now and the exact request. You have 15 minutes to approve it, and it can only run once.
  • Off limits. AdPlug can't delete a property or a data stream, or change who has access to a property.
  • Your approvals. Grok Bot's approval cards usually offer Allow once, Always allow and Deny, and a card paused by an Ask first rule shows Allow, Not now and Edit rule. Don't answer a GA4 change with Always allow, because it saves an Allow rule for similar actions. Step 4 below keeps Auto Review on and sets up the Ask first rule.
  • Shared across Bots. A connected app is available to every Bot you run, so any Bot you create can reach the properties this connection can see. A Team Bot uses its owner's apps and asks before it uses yours. Don't let a Manager share AdPlug as a team connector: anyone who talks to the Bot could then make changes as that account.
  • Your data. Reports pass through and aren't stored, and every tool call is recorded in your AdPlug Usage and Audit Log, so you can check what a Bot did while you were away.

03

What you need

  • Grok Bot. It comes with The X Subscription on Premium, Super and Ultra, team seats included (Plus and Free don't include it), and older Cursor and SuperGrok plans still work. SpaceXSI's pricing page has the current terms.
  • An AdPlug account. The free plan is enough to set this up and test it: view only, 500 requests in the first 5 days and 50 a month after that, on one platform.
  • Access to the property. A Google account with a role on the GA4 properties you want the Bot to work on. Changes need a role that can edit the property.

04

How to connect Google Analytics to Grok Bot in 5 steps

Steps 1 and 2 happen in AdPlug, and steps 3 to 5 in Grok Bot. Allow about ten minutes the first time.

  1. Create your AdPlug account

    Go to adplug.app/signup, sign in with Google or email, and follow the short onboarding. It ends on your AdPlug dashboard.

    AdPlug Create your account screen with a Continue with Google button and name, email and password fields.
    AdPlug sign-up. One click with Google, or an email and password.
  2. Connect Google Analytics to AdPlug

    In onboarding, or any time on the Connections page, click Connect Google Analytics and sign in with the Google account that opens your properties in Google Analytics. Every GA4 property that account can open becomes available to your Bot through the one connection.

    Google then asks you to let AdPlug “See and download your Google Analytics data” and “Edit Google Analytics management entities”. Leave both ticked. The first lets AdPlug read your data and the second lets it make the changes you approve, so without both, AdPlug refuses the connection and asks you to connect again. Allowing the second changes nothing by itself: AdPlug only makes a change from a preview you approve.

    The Google Analytics card on AdPlug's Connections page, with the line GA4 traffic, key events, funnels, tracking checks, marked Connected, the email hidden, the connection date 18/11/2026, and Reconnect and Disconnect buttons.
    Google Analytics connected on AdPlug's Connections page, with the date it was connected.

    Google Ads or Search Console already connected?

    Google Analytics has its own Google sign-in, even when it's the same Google account, so you can disconnect one without touching the others.

  3. Ask your Bot to add AdPlug

    Grok Bot installs connectors from Connect apps in the sidebar, and adds one that isn't in its catalogue when you ask in chat. Open a chat with your Bot and send:

    Add a custom MCP server called AdPlug - Google Analytics at https://api.adplug.app/mcp/google-analytics

    Keep the words custom MCP server and the full address in the message, so the Bot knows you mean AdPlug and not its own Google Analytics app. The Bot adds AdPlug and posts an Authorize card. If it asks you to confirm the name and address first, say yes.

    https://api.adplug.app/mcp/google-analytics
    A chat with a Grok Bot: the message that adds a custom MCP server called AdPlug - Google Analytics at https://api.adplug.app/mcp/google-analytics, and the Bot's AdPlug - Google Analytics card with an Authorize button.
    An example of the message in a chat with your Bot, and the Authorize card it posts once AdPlug is added.
  4. Authorise the connection

    Click Authorize on the card, then Continue. Grok Bot opens AdPlug's sign-in in your browser. Sign in with the AdPlug account you connected Google Analytics in, and click Approve. AdPlug's screen says Cursor wants access, because Grok Bot connects apps through Cursor's backend (so no, you didn't pick the wrong app).

    AdPlug Authorize access screen for Grok Bot saying Cursor wants to access your AdPlug account, then back to www.cursor.com, with Deny and Approve buttons.
    AdPlug's approval screen for Grok Bot. It names Cursor, the backend Grok Bot runs on.

    If your browser asks to open Grok Bot, allow it. The card then says Connected, and AdPlug - Google Analytics is listed under Installed in Connect apps.

    Grok Bot's Connect apps page with AdPlug - Google Analytics and its address, https://api.adplug.app/mcp/google-analytics, under Installed, marked Connected.
    An example of AdPlug - Google Analytics under Installed in Connect apps, marked Connected.

    Before you ask for any change, make the Bot stop and ask. Grok Bot's Auto Review always shows an approval card for an action that matches an Ask first rule:

    1. On desktop, open Settings, then General, and check the Auto-review switch under Bot is on (on a phone, it's in the Bot group of Settings). With it off, your custom rules aren't used.
    2. Open Custom rules, under the switch. Under When Grok Bot wants to:, describe the action, for example “Make a change in Google Analytics through AdPlug”.
    3. Under It should:, choose Ask first, then click Add Rule.

    When the Bot wants to make a matching change, its card shows Allow, Not now and Edit rule. Read AdPlug's preview before you click Allow.

    Grok Bot's changelog for 18 November also lets you set each tool on a connector's page to Always allow, Auto-review, Needs approval or Blocked. If you see that setting, put google_analytics_execute_mutation on Needs approval too.

  5. Test the connection

    In a chat with your Bot, ask:

    “List my Google Analytics properties.”

    The Bot calls the google_analytics_list_properties tool and lists every GA4 property your Google login can open, and whether you can edit each one. If the Bot answers without AdPlug, type @ and pick AdPlug - Google Analytics first.

    A Grok Bot answering 'List my Google Analytics properties.' with the google_analytics_list_properties tool of AdPlug - Google Analytics: three properties with their accounts, property IDs and whether each can be edited.
    An example reply to the test prompt, one row for each property the Bot can reach.

05

The 10 Google Analytics tools Grok Bot can use through AdPlug

AdPlug gives your Bot 10 Google Analytics tools: 8 that read, 1 that previews a change and 1 that makes it once you approve. The Google Analytics MCP integration page sets out the 46 kinds of change and what AdPlug never touches.

AdPlug's Google Analytics tools in Grok Bot
ToolWhat it doesReads or changes
adplug_get_statusWhat's connected, and what your AdPlug plan allowsReads
google_analytics_list_propertiesEvery GA4 property your Google login can see, a 28-day comparison across up to 25 of them, or one property in detailReads
google_analytics_insights16 ready-made analyses, from an overview, channels and landing pages to Google Ads, key events, anomalies, ecommerce and AI assistant traffic, most of them against the period beforeReads
google_analytics_reportGA4 reports with your own metrics, dimensions, dates, filters and comparison, plus pivots and realtimeReads
google_analytics_metadataEvery dimension and metric the property can report on, custom ones included, and which ones work togetherReads
google_analytics_funnelA funnel like GA4's funnel exploration, open or closed: how many users reach each step and where they drop offReads
google_analytics_auditWhether the property's numbers can be trusted, with the fix for each problem it findsReads
google_analytics_settingsOne part of the property's setup: key events, Google Ads links, attribution, data retention, change history and moreReads
google_analytics_preview_mutationShows a change before it's made, next to what's there now: key events, custom definitions, audiences, channel groups, annotations, links and settingsPreviews a change
google_analytics_execute_mutationMakes a change you approved from its preview, onceMakes a change
You don't need the names. Ask your Bot for the job in plain words and it picks the tools.

06

Prompts and routines

Name the property if your login opens more than one. There are more copy-paste prompts in the prompt playbooks.

What to fix first

“Review my Google Analytics over the last 30 days (ask which property if I have several): tracking I can't trust, key events gone quiet, channel shifts and landing pages that leak conversions. Come back with the top 5 things to fix, ranked by impact, and why each matters.”

Can I trust the data?

“Audit my GA4 property's tracking: tagging, key events, Unassigned and (not set) traffic, UTMs and referrals. Tell me what to fix first.”

Key events gone quiet

“Have any key events stopped firing or dropped against a normal week? Tell me when each last fired and whether it's broken tracking or lost traffic.”

Where the funnel leaks

“Where did my lead funnel leak last month, from landing page to form submit, and which channel drops off worst?”

Grok Bot can also run work on a schedule. It calls this a routine: you tell the Bot in chat what to do and when, and it keeps running in the cloud while your laptop is closed. A weekly GA4 check is the one I'd start with:

“Every Monday at 8am, compare last week's GA4 with the week before: sessions and key events by channel, key events that stopped firing, and landing pages that dropped. Flag only what needs me, and don't change anything.”

A new routine waits for its next scheduled time, so open it on desktop and, if it shows Test, use that to run it once now. Every run uses AdPlug requests, and AdPlug's free plan drops to 50 a month after the first 5 days, so for a routine you keep, you'll want a paid plan.

07

Using Grok chat instead

If you use Grok in the browser rather than Grok Bot, add AdPlug as a custom connector. The Grok connector docs have the details:

  1. Click Plugins in the sidebar, or go to grok.com/connectors.
  2. Click New Connector, then select Custom.
  3. Name it AdPlug - Google Analytics, paste the AdPlug address as the Server URL, click Add Connector, and complete the sign-in.
Grok's Custom Connector form on grok.com, asking for a custom name and an MCP server URL, with Cancel and Add Connector buttons.
Grok's Custom Connector form on grok.com: a name, the MCP server URL, then Add Connector.

08

Troubleshooting

Click any item to expand the answer.

The Bot connected its own Google Analytics app instead
Send the message again with the words custom MCP server and the full AdPlug address. Type @ and pick AdPlug - Google Analytics when a task should use AdPlug. To remove an app you don't want, open it in Connect apps and choose Disconnect.
AdPlug shows as Added, but the Bot says it's missing
Added means installed, not signed in. Open Connect apps, open AdPlug - Google Analytics, and choose Authenticate (Authorize on a phone) if it shows Needs auth or Disconnected. Finish the sign-in within about ten minutes.
AdPlug's sign-in screen says Cursor, not Grok Bot
That's expected. Grok Bot connects apps through Cursor's backend, so AdPlug's screen names Cursor and sends you back to www.cursor.com afterwards. Approve it.
AdPlug says a Google Analytics permission was unticked
Google's consent screen lets you untick each permission, and AdPlug needs both. Connect again on the Connections page and leave both Google Analytics permissions ticked.
Google says an admin has to approve AdPlug
On a Google Workspace account, the Workspace admin can block third-party apps. Ask them to allow AdPlug in the Admin console (Security, then Access and data control, then API controls), then connect again.
The Bot lists no Google Analytics properties
The Google account you connected in AdPlug needs a role on at least one GA4 property. Check it at analytics.google.com, then reconnect in AdPlug with the Google account that has it.
An approval expired before I saw it
Approvals raised by a routine, an incoming message or other background work expire after 30 minutes, and the action doesn't run. Keep scheduled work read-only, and make GA4 changes in a chat you're in.
A change is refused on the free plan
AdPlug's free plan can preview a change but not apply it, and the reply says so. Applying changes needs a paid plan.

09

Questions people ask

Can Grok Bot connect to Google Analytics?
Yes: Grok Bot's own Google Analytics app if it appears in your account (a member of the Grok Bot team showed it on X on 19 November 2026), or AdPlug's Google Analytics MCP server, added as a custom MCP server. For AdPlug, connect Google Analytics in your AdPlug account first, then send your Bot "Add a custom MCP server called AdPlug - Google Analytics at https://api.adplug.app/mcp/google-analytics" and approve AdPlug's sign-in. The Bot can then read your GA4 properties, audit the tracking and preview changes. Keep Auto Review on with an Ask first rule for Google Analytics changes, and the Bot asks before applying each one.
Does Grok Bot have its own Google Analytics app?
Yes, if it appears in your account. A member of the Grok Bot team at SpaceXSI (formerly xAI) showed official Google Analytics and Google Ads connect cards in a post on X on 19 November 2026. The card says Grok Bot always asks before making changes. Check it's under Connect apps and covers your job before you rely on it.
Should I use Grok Bot's Google Analytics app or AdPlug?
Use Grok Bot's own app if it's in your account, covers what you need and you only work in Grok Bot. Use AdPlug when you want its tracking audit, funnels, 16 ready-made analyses and 46 kinds of GA4 change, each previewed first, or the same connection in Claude and ChatGPT. Type @ and pick AdPlug - Google Analytics when a task should use AdPlug.
Is there one prompt that connects Grok Bot to Google Analytics?
Yes, once Google Analytics is connected in your AdPlug account. Send your Bot: "Add a custom MCP server called AdPlug - Google Analytics at https://api.adplug.app/mcp/google-analytics". It adds AdPlug and posts an Authorize card. Click Authorize, then Continue, and approve AdPlug's sign-in in your browser.
How do I get access to Grok Bot?
Grok Bot comes with The X Subscription on Premium, Super and Ultra, team seats included, but not on Plus or Free. Older routes still work: paid individual Cursor plans and Cursor Teams, a linked SuperGrok, SuperGrok Plus, SuperGrok Heavy or X Premium+ subscription, or a seat on a self-serve Grok Business plan. SpaceXSI's pricing page has the current terms.
Which Google Analytics tools does Grok Bot get?
10 tools through AdPlug: 8 that read, 1 that previews a change and 1 that makes it. The 8 cover your properties, 16 ready-made analyses, custom and realtime reports, the property's dimensions and metrics, funnels, a tracking audit, the property's settings and AdPlug's status check. You don't need the names: ask for the job in plain words and the Bot picks the tool.
Can I connect several clients' GA4 properties?
Yes, every property your Google login can open, through one connection. Ask for a portfolio view and AdPlug compares up to 25 properties' last 28 days with the 28 before. AdPlug connects one Google login for Google Analytics, so use the login your clients have added to their properties.
Does it work with Universal Analytics?
No, GA4 properties only. Google switched off Universal Analytics, including its reports and API, on 1 July 2024.
Can Grok Bot change my GA4 settings?
Yes, with a paid AdPlug plan, and only from a preview. AdPlug gives the Bot a preview tool that shows the exact change without making it, and an execute tool that applies it. Keep Auto Review on and add an Ask first rule for Google Analytics changes (Settings, General, Bot, Custom rules), so the Bot always shows you an approval card first. With Auto Review off, custom rules aren't used. AdPlug can't delete a property or a data stream, or change who has access.
Can Grok Bot run a GA4 report on a schedule?
Yes. A Grok Bot routine runs a workflow on a schedule, for example a Monday check of last week's traffic and key events, and keeps running while your laptop is closed. Keep scheduled work read-only, because an approval raised by a routine expires after 30 minutes.
Does this work in Grok chat as well?
Yes. Connect Google Analytics in AdPlug first. Then on grok.com, open Plugins (grok.com/connectors), choose New Connector, then Custom, name it AdPlug - Google Analytics, paste https://api.adplug.app/mcp/google-analytics as the Server URL, and complete the sign-in.
Is connecting Grok Bot to Google Analytics free?
Not completely. Grok Bot itself needs X Premium or higher on The X Subscription, or one of the older plans that include it. On AdPlug's side, the free plan covers one platform, and Google Analytics can be that platform: view only, with 500 requests in the first 5 days and 50 a month after that. Applying GA4 changes needs a paid AdPlug plan, and every routine run uses AdPlug requests.

Try it on your account.

Connect Google Analytics to Grok Bot through AdPlug in a few minutes. Free plan, no card needed.