<< Home | Work
Claude Code answers site analytics questions directly
| Area | Work |
| AI used | Claude Code |
| Source | r/mcp |
| Posted | 2026-10-07 |
The move
Connect your site analytics data to Claude Code using an MCP server to query traffic and conversion data via natural language.Steps
- Obtain your read key from your analytics provider.
- Install the MCP server into Claude Code using the provided CLI command.
- Verify the connection by asking the agent to query your recent site traffic.
- Use natural language prompts to group signups by source or identify traffic spikes.
Prompt for your AI
For the last 7 days, group [event_name] by source, show the counts and date range, and identify where attribution is unknown.
What happened
The user built an MCP server to allow Claude Code to access site analytics data like pageviews and signups. By adding the server to Claude Code, the agent can now query specific traffic sources and conversion events directly. This allows the user to get data-backed answers about marketing performance without leaving the coding environment.Watch out
Do not treat AI-generated marketing plans as proof of causality, especially with small data samples.Give it to your agent
Read https://howtheyuse.ai/p/claude-code-answers-site-analytics-questions-directly.md and help me do this.