Download
Documentation
Print This page — Print the full How to Connect Google Analytics 4 to Claude Code With Analytify MCP documentation

How to Connect Google Analytics 4 to Claude Code With Analytify MCP

You can connect Google Analytics to Claude Code with one terminal command. Add Analytify MCP as a remote HTTP server, then sign in with Google from inside Claude Code.

What You Need

  • A Google Analytics 4 property, and the Google account that has access to it
  • An Analytify MCP license key, sent in your purchase email and shown in your Analytify account. No key yet? Get Analytify MCP
  • Claude Code installed

How to Connect Google Analytics to Claude Code

Connect Google Analytics 4 to Claude Code with Analytify MCP. You need Claude Code installed, a Google account with GA4 access, and an Analytify MCP license key.

Total Time: 3 minutes

Step 1: Add the Analytify server

Run the command below in your terminal.
Connect Google Analytics to Claude Code: add the Analytify server in the terminal
claude mcp add --transport http analytify https://core.analytify.io/mcp

Step 2: Open the MCP menu

Start Claude Code and type /mcp.
Start Claude Code and type /mcp (Analytify MCP setup in Claude Code)

Step 3: Connect Analytify MCP

Search Analytify MCP and click Connect next to it.
Search Analytify MCP and click Connect next to it (Analytify MCP setup in Claude Code)

Step 4: Sign in with Google

Choose the Google account that has access to your GA4 property

Follow the Google sign-in steps in your browser.

Step 5: Activate your license key

Enter your Analytify MCP license key and click Activate License

Enter your Analytify MCP license key and click Activate License. You can find the key in your purchase email and in your Analytify account.

Step 6: Confirm the connection

Run /mcp again to confirm Analytify shows as connected.
Run /mcp again to confirm Analytify shows as connected (Analytify MCP setup in Claude Code)

Ask Your First Question

Ask a question about your own data in plain English, for example:

  • What were my top 10 pages last week, and how do they compare to the week before?
  • How many people are on my site right now?

Every answer names its metric and date range, so you can check exactly what it covers.

Disconnect Analytify MCP

To fully disconnect Analytify MCP, remove Analytify’s Google access first, then remove the server from Claude Code.

  1. Remove Analytify’s Google access. In a chat with Analytify turned on, ask: Remove Analytify’s Google access. Claude Code uses the Remove Analytify’s Google access from Analytify Connector tool and asks you to confirm. Once confirmed, it disconnects Analytify from every AI assistant on your Google account and deletes the Google authorization Analytify stores.
    This cannot be undone. To use Analytify MCP again, reconnect and grant Google access again.
  2. Remove the server from Claude Code. Run the command below in your terminal, then type /mcp to confirm Analytify no longer appears in the list.
    claude mcp remove analytify

FAQs

Why Are Analytify Tools Not Showing in Claude Code?

Analytify tools appear only after the Google sign-in completes. Check that Analytify shows as connected in Claude Code’s settings, and turn it on for the current chat. If it still does not appear, remove the connector and add https://core.analytify.io/mcp again.

Can Analytify MCP Change Anything in My Google Analytics?

No. Every Analytify MCP reporting tool is read-only, so it cannot edit, publish, or delete anything in your Google Analytics account. The one exception is the Remove Analytify’s Google access tool, which removes Analytify’s own access when you ask it to.

Do I Need the Analytify WordPress Plugin?

No. Analytify MCP works with any Google Analytics 4 property, with or without WordPress. WooCommerce, EDD, Forms and Goals reports are the exception: they need the matching Analytify add-on tracking on your site.

Can I Use Analytify MCP With More Than One GA4 Property?

Yes. One Analytify MCP connection covers every GA4 property your Google account can access. With one property, Analytify MCP picks it automatically. With several, name the property in your chat or set a default.

More Analytify MCP Setup Guides

🎃 Halloween Sale: Know which campaigns drive sales this season.
Save 60% OFF Today
close-image