# Read Search Console and Analytics with Claude Code

> Read Search Console and GA4 from your terminal. Claude Code calls StoreSEO for queries, pages and traffic sources and can save the numbers next to your theme.

Reading Google reports with Claude Code means asking Anthropic's terminal agent for Search Console and GA4 numbers through StoreSEO while you work in your theme repository, so the data lands beside the code you are about to change.

## How do you set up Claude Code for this?

### 1. Add StoreSEO to Claude Code

Run this in any terminal. The user scope makes StoreSEO available in every project on your machine.

```bash
claude mcp add --transport http --scope user storeseo https://mcp.storeseo.com/mcp
```

### 2. Sign in to your store

Start Claude Code, run /mcp, choose storeseo and follow the browser window: pick your Shopify store and approve access.

```text
/mcp
```

### 3. Or connect with an access token (optional)

If you cannot use a browser sign-in, generate a token in StoreSEO under Settings, AI Toolkit and add the server with the token as a header instead.

```bash
claude mcp add --transport http --scope user storeseo https://mcp.storeseo.com/mcp \
  --header "Authorization: Bearer YOUR_TOKEN"
```

Then ask: "Use StoreSEO to pull Search Console by query for the last 28 days, compare with the previous period, and save the top 25 to reports/queries.md."

## How does this work in Claude Code?

You are in a terminal with Claude Code started in a theme folder, and you type a request such as which queries lost clicks this month and which pages gained impressions. Claude Code calls storeseo_start, then storeseo_get_search_console_insights once per dimension it needs, usually query and then page, and each call prints as it runs. The results include range totals for clicks, impressions, CTR and average position and the change against the previous equal-length period, so you read a comparison rather than a raw dump.

Because Claude Code can read and write files in the working folder, the report does not have to stay on screen. Ask it to write the top queries and their position changes to a Markdown or CSV file, or to keep a dated reports folder, and a later session can compare a new pull with the saved one. For visitor data it calls storeseo_get_analytics_report with a report type like page_performance or traffic_source, and it can cross-reference those pages with the Liquid templates and content in the repository that produce them.

That cross-referencing is the reason to do this job in a terminal. A page with many impressions and a weak CTR is a candidate for new meta, and Claude Code can tell you which template or product handle it belongs to before you move on to the optimization job, where it asks for your yes before applying anything. The two Google tools themselves are reads and run straight away.

### Example session (illustrative)

**You:** Pull my top pages from Search Console for the last 28 days and save them to reports/pages.md.
→ `storeseo_start` (read-only)
→ `storeseo_get_search_console_insights` (read-only)
**Agent:** Illustrative result: I wrote 25 pages to reports/pages.md with clicks, impressions, CTR and position, plus the change from the previous 28 days. Three product pages have strong impressions and a low CTR. Want the GA4 page performance for those three?
**You:** Yes, pull it.
→ `storeseo_get_analytics_report` (read-only)

## What StoreSEO does: search console and analytics reports

StoreSEO connects to your Google Search Console and Google Analytics 4 property. The agent reads Search Console performance by date, query, page, country, device or search appearance, and curated GA4 reports, each compared with the previous period by default.

Tools: `storeseo_get_search_console_insights`, `storeseo_get_analytics_report`

Requires: A paid StoreSEO plan with Google connected in the app, and a GA4 property selected for Analytics reports.

1. **Pick the question.** Search Console answers how you appear in Google: clicks, impressions, CTR and average position. GA4 answers what visitors do: users, engagement, pages, sources and key events.
2. **Read the report.** The agent reads the last 28 days by default, or the range you name, broken down by the dimension that fits the question.
3. **Compare periods.** Both reports include the previous period of the same length and the change per metric unless you ask otherwise.
4. **Turn it into actions.** The agent can link what it finds to the other jobs, for example pages with impressions but a low CTR are candidates for new meta.

## Search Console and Analytics reports reference

| Setting or limit | What applies |
|---|---|
| Search Console metrics | Clicks, impressions, CTR, average position |
| Search Console dimensions | Date, query, page, country, device, search appearance |
| GA4 reports | Search traffic, user activity, demographics, page performance, traffic source, key events |
| Default range | Last 28 days |
| Comparison | Previous equal-length period with per-metric change, on by default |
| What it writes | Nothing. Both tools are read-only and never connect or configure Google |
| Plan | Paid plan with Google connected; GA4 property selected for Analytics |

## Rules Claude Code follows

- Both tools are reads and run straight away.
- Connecting Google or choosing the GA4 property is done in the StoreSEO app; the agent hands you the link when it is missing.
- Numbers are reported as Google returns them; the agent does not project outcomes from them.

**In Claude Code:** Claude Code warns when a single tool result is larger than 10,000 tokens, and a Search Console pull by query or page with a large top_n can reach that on a busy store. Ask for the top twenty or fifty rows, or one narrow dimension at a time, instead of the longest list the tool will return. Also check which scope you added the server with: without the user scope StoreSEO is available only in the project folder where you added it, so a report started from another directory will not find the Google tools.

## What can you ask Claude Code to do?

- Use StoreSEO to pull Search Console by query for the last 28 days, compare with the previous period, and save the top 25 to reports/queries.md.
- Which product pages have high impressions and a low CTR? Pull the page dimension, then tell me which templates in this repo render them.
- Get the GA4 traffic_source report for last month and summarize which channels grew. Read only, change nothing.
- Which queries brought the most clicks from Google in the last 28 days, and how does that compare with the month before?
- Which product pages have high impressions but a CTR under two percent?
- Show organic search traffic from GA4 for the last three months.
- Which countries send the most visitors, and on which devices?
- Which traffic sources led to purchases last month?

## Frequently asked questions

### Can Claude Code save my Search Console data to a file?

Yes. Claude Code works in the folder you started it in, so it can write the report it reads from StoreSEO to a Markdown or CSV file there. StoreSEO does not store the file for you, and a later session can pull fresh numbers and compare them with the saved ones.

### Will Claude Code ask before running the Google report tools?

That depends on your Claude Code permission settings. The tools are reads, but Claude Code can still prompt before an MCP tool runs unless you have allowed it. If you allow the StoreSEO tools, scope the rule to the read tools.

### Can the agent connect my Google account?

No. Connecting Search Console and Google Analytics, and choosing the GA4 property, is done in the StoreSEO app. If Google is not connected, the tool returns a link telling you what to set up.

### Can these reports change anything?

No. Both Google tools are read-only. They never connect, configure or write anything in Google or in your store.

### Which plan includes Google reports over MCP?

A paid StoreSEO plan with Google connected. Analytics reports also need a GA4 property selected in the app.

### How far back can the agent look?

You can name any date range the report supports. When you do not, both tools default to the last 28 days and compare it with the 28 days before.

## Search Console and Analytics reports with other agents

- [Read Search Console and Analytics with Claude](https://storeseo.com/agent/claude/google-reports)
- [Read Search Console and Analytics with ChatGPT](https://storeseo.com/agent/chatgpt/google-reports)
- [Read Search Console and Analytics with Claude Cowork](https://storeseo.com/agent/claude-cowork/google-reports)
- [Read Search Console and Analytics with Cursor](https://storeseo.com/agent/cursor/google-reports)
- [Read Search Console and Analytics with Codex](https://storeseo.com/agent/codex/google-reports)
- [Read Search Console and Analytics with Gemini CLI](https://storeseo.com/agent/gemini-cli/google-reports)
- [Read Search Console and Analytics with GitHub Copilot](https://storeseo.com/agent/github-copilot/google-reports)
- [Read Search Console and Analytics with Windsurf](https://storeseo.com/agent/windsurf/google-reports)
- [Read Search Console and Analytics with Grok](https://storeseo.com/agent/grok/google-reports)
- [Read Search Console and Analytics with ChatGPT dots](https://storeseo.com/agent/chatgpt-dots/google-reports)
- [Read Search Console and Analytics with Grok Bot](https://storeseo.com/agent/grok-bot/google-reports)
- [Read Search Console and Analytics with Muse](https://storeseo.com/agent/muse/google-reports)
- [Read Search Console and Analytics with Manus](https://storeseo.com/agent/manus/google-reports)
- [Read Search Console and Analytics with OpenClaw](https://storeseo.com/agent/openclaw/google-reports)
- [Read Search Console and Analytics with Hermes Agent](https://storeseo.com/agent/hermes-agent/google-reports)
- [Read Search Console and Analytics with Paperclip](https://storeseo.com/agent/paperclip/google-reports)
- [Read Search Console and Analytics with NanoClaw](https://storeseo.com/agent/nanoclaw/google-reports)
- [Read Search Console and Analytics with OpenCode](https://storeseo.com/agent/opencode/google-reports)
- [Read Search Console and Analytics with Zed](https://storeseo.com/agent/zed/google-reports)
- [Read Search Console and Analytics with Kiro](https://storeseo.com/agent/kiro/google-reports)
- [Read Search Console and Analytics with Antigravity](https://storeseo.com/agent/antigravity/google-reports)
- [Read Search Console and Analytics with Kimi Code](https://storeseo.com/agent/kimi/google-reports)

## More Claude Code guides

- [Claude Code and StoreSEO overview](https://storeseo.com/agent/claude-code)
- [Audit your store's SEO with Claude Code](https://storeseo.com/agent/claude-code/seo-audit)
- [Optimize meta tags and content with Claude Code](https://storeseo.com/agent/claude-code/optimize-meta)
- [Optimize images and alt text with Claude Code](https://storeseo.com/agent/claude-code/image-seo)
- [Get products ready for AI search with Claude Code](https://storeseo.com/agent/claude-code/ai-search-readiness)
- [Publish llms.txt and agents.md with Claude Code](https://storeseo.com/agent/claude-code/llms-txt-agents-md)
- [Set up structured data with Claude Code](https://storeseo.com/agent/claude-code/structured-data)
- [Manage sitemaps and indexing with Claude Code](https://storeseo.com/agent/claude-code/sitemaps)
- [Track keyword rankings with Claude Code](https://storeseo.com/agent/claude-code/keyword-tracking)
- [Write SEO blog post drafts with Claude Code](https://storeseo.com/agent/claude-code/blog-posts)

## Related documentation

- [StoreSEO with Google Search Console](https://storeseo.com/docs/storeseo-with-google-search-console)
- [How to use Search Console insights](https://storeseo.com/docs/how-to-use-google-search-console-insights)
- [Connect StoreSEO with Google Analytics](https://storeseo.com/docs/how-to-connect-storeseo-with-google-analytics)

---

Canonical: https://storeseo.com/agent/claude-code/google-reports
Last updated: October 2026.

Approval: Reads run straight away; StoreSEO tells the agent to preview and wait for your yes before it writes, spends credit or publishes, and your client's tool-approval setting is the hard stop.

Every agent guide: https://storeseo.com/agent · Connect the MCP server: https://storeseo.com/docs/connect-storeseo-mcp-to-your-ai-assistant · Pricing: https://storeseo.com/pricing · Install StoreSEO: https://apps.shopify.com/storeseo
