Plugsight

Marketing & analytics · Claude Code

Connect Google Analytics 4 to Claude Code

Ask your AI about traffic, conversions and revenue in every GA4 property. Plugsight links GA4 to Claude Code in a few minutes, with no code and no exports.

What you can ask Claude Code about GA4

Which products were added to cart most but bought least?
How many people are on the site right now, and from which countries?
Show sessions and key events by week for the last quarter.
Build a funnel from product page to purchase and show where mobile users drop off.
Which channels drove the most revenue this month vs last month?
Which landing pages have the highest conversion rate from paid search?

How to connect GA4 to Claude Code

  1. Create a free Plugsight account.
  2. Choose Google Analytics 4 and sign in with Google. Every GA4 property you can access is included.

Then add Plugsight to Claude Code

  1. In Plugsight, open MCP servers, create one and copy its URL.
  2. Add it to Claude Code (use your server's URL):claude mcp add --transport http plugsight https://app.plugsight.app/mcp/YOUR_SERVER_ID
  3. Start Claude Code, type /mcp, choose plugsight and then Authenticate. Your browser opens Plugsight: sign in and click Allow access.
  4. Add --scope user before the name to use it in every project. Run /mcp again to check that Plugsight is connected.
  5. No browser (a server or a script)? Create an API key on the MCP server's page and add the server with it instead:claude mcp add --transport http plugsight https://app.plugsight.app/mcp/YOUR_SERVER_ID --header "Authorization: Bearer YOUR_API_KEY"

Claude Code signs in to Plugsight in your browser: you approve it once. Where no browser can open, use an API key instead. Works with any Claude Code setup.

Full steps and troubleshooting in the docs: Claude Code.

GA4 data available

  • Sessions, users, engagement, key events (conversions) and revenue
  • Channel, source / medium, campaign and landing page
  • Ecommerce: purchases, items, add-to-carts and checkouts
  • Google Ads keyword and search query for linked accounts
  • Any GA4 dimension or metric, including your custom definitions
  • Funnels: where people drop off between any steps or pages
  • Your key events, with counts for any period
  • Realtime: who is on the site right now

Ready-made analyses

  • Account overview: Every platform and account, this period against the last.
  • Period comparison: Any metrics against the previous period or last year.

Why use GA4 in Claude Code

  • Combine your data with scripts and files
  • Automate recurring reports
  • Ideal for analysts and developers

Questions about GA4 and Claude Code

How do I connect Google Analytics 4 to Claude Code?

Create a free Plugsight account and connect GA4: Choose Google Analytics 4 and sign in with Google. Every GA4 property you can access is included. Then add Plugsight to Claude Code: In Plugsight, open MCP servers, create one and copy its URL. Add it to Claude Code (use your server's URL): claude mcp add --transport http plugsight https://app.plugsight.app/mcp/YOUR_SERVER_ID Start Claude Code, type /mcp, choose plugsight and then Authenticate. Your browser opens Plugsight: sign in and click Allow access. Add --scope user before the name to use it in every project. Run /mcp again to check that Plugsight is connected. No browser (a server or a script)? Create an API key on the MCP server's page and add the server with it instead: claude mcp add --transport http plugsight https://app.plugsight.app/mcp/YOUR_SERVER_ID --header "Authorization: Bearer YOUR_API_KEY"

Can Claude Code read my GA4 data?

Yes, once connected. Claude Code can see: Sessions, users, engagement, key events (conversions) and revenue; Channel, source / medium, campaign and landing page; Ecommerce: purchases, items, add-to-carts and checkouts; Google Ads keyword and search query for linked accounts. For example, ask: "Which channels drove the most revenue this month vs last month?"

Which Claude Code plans work?

Works with any Claude Code setup.

How does Claude Code sign in to Plugsight?

Claude Code signs in to Plugsight in your browser: you approve it once. Where no browser can open, use an API key instead.

Can Claude Code change anything in GA4?

No. Plugsight only reads Google Analytics 4; it never creates, changes or deletes anything there.

Is the GA4 connector free?

Google Analytics 4 is on the Pro plan ($29 a month, or $290 a year), which also adds more connections and the other marketing sources. The Free plan covers email, helpdesk, calendar, contacts, files, stores and email marketing.

Good to know

  • When Google applies data thresholds or sampling, Plugsight says so in the answer.

Connect Google Analytics 4 to Claude Code

Free plan, no credit card. Set up in about five minutes.

Updated