How to Connect Google Analytics to Claude with CorpusIQ MCP¶
Google Analytics is the most widely used web analytics platform in the world — but most organizations only scratch the surface of what their GA4 data can tell them. Reports are complex, exploration tools require training, and the gap between "I have a question about our traffic" and "I have the answer" is often measured in hours or days. Connecting Google Analytics to Claude via CorpusIQ's MCP platform closes that gap to seconds.
Ask Claude "How did our organic traffic trend last quarter?", "Which landing pages have the highest conversion rate?", or "What's our mobile vs. desktop revenue split?" and receive instant, accurate answers. No report building. No exploration interface. No analytics training required.
Why Connect Google Analytics to Claude?¶
GA4 contains a wealth of data about your website visitors, their behavior, and your conversion performance. But GA4's interface is notoriously complex — even experienced analysts struggle with exploration reports and custom dimensions. Claude gives everyone on your team a natural language interface to the same data.
Key benefits:
- Instant traffic answers. "What were our top traffic sources last month?" — answered in seconds.
- Conversion intelligence. Understand which channels, pages, and campaigns drive conversions without building funnels.
- Content performance. "Which blog posts drove the most traffic this quarter?" — no more manual report building.
- E-commerce analytics. "What's our e-commerce conversion rate by device?" — directly from GA4 data.
- Cross-source attribution. Combine GA4 traffic data with Google Ads spend, Shopify revenue, or Klaviyo email metrics to understand your full marketing funnel.
- Real-time data. Every query is a live API call — no cached reports, no stale exports.
How It Works¶
- Connect Google Analytics via Google OAuth. CorpusIQ requests read-only access to your GA4 properties.
- Ask Claude any question about your web analytics.
- CorpusIQ translates your question into GA4 Data API calls — selecting the right dimensions, metrics, and date ranges.
- Claude presents the results with analysis, trend interpretation, and actionable insights.
The integration supports all standard GA4 dimensions and metrics: traffic source, medium, campaign, landing page, device category, geography, session metrics, conversion events, and e-commerce data.
Setup Steps¶
- Go to Connectors in your CorpusIQ dashboard.
- Select Google Analytics from the integration catalog.
- Click "Connect Google Analytics" — authorize via Google OAuth.
- Select which GA4 properties Claude can access.
- Start asking analytics questions.
Example Claude Queries¶
Traffic Analysis: - "What was our total website traffic last month, broken down by channel?" - "How does organic search traffic compare to paid search traffic this quarter?" - "Which countries drive our most engaged users?" - "Show me traffic trends for our top 10 landing pages."
Conversion Analysis: - "What's our overall conversion rate and how has it trended?" - "Which traffic sources have the highest conversion rates?" - "Show me conversion rates by device — mobile vs. desktop vs. tablet." - "Which landing pages have the highest and lowest bounce rates?"
E-Commerce Analytics: - "What's our e-commerce revenue by product category?" - "Show me the purchase journey — sessions to add-to-cart to purchase." - "What's our average order value from organic vs. paid traffic?"
Content Performance: - "Which blog articles drove the most traffic this month?" - "What's the average time on page for our product pages?" - "Show me pages with the highest exit rate."
Cross-Source: - "Correlate Google Ads spend with GA4 sessions by day." (requires Google Ads) - "Compare GA4 e-commerce revenue to Shopify order revenue." (requires Shopify) - "Which email campaigns drove the most website traffic?" (requires Klaviyo/Mailchimp)
Security¶
- Read-only OAuth 2.0. Claude can query GA4 data but can never modify properties, views, or settings.
- No data storage. Live API queries only.
- Property-level isolation. You control which GA4 properties are accessible.
Comparison: MCP vs. GA4 Data API Direct¶
| Aspect | CorpusIQ MCP | GA4 Data API Direct |
|---|---|---|
| Setup | 5-minute OAuth | Developer + Google Cloud project setup |
| Natural language | Yes | No — requires dimension/metric knowledge |
| Cross-source | Built-in | Custom ETL required |
| Dimensional queries | Automatic — CorpusIQ selects dimensions | Manual dimension/metric selection |
| Non-technical access | Anyone can query | Requires API or Looker Studio skills |
FAQ: Common Questions¶
Does this work with Universal Analytics (UA) or only GA4?
The integration supports Google Analytics 4 (GA4). Universal Analytics is deprecated by Google and not supported.How many GA4 properties can I connect?
You can connect all GA4 properties accessible to your Google account.Is there any data sampling?
CorpusIQ uses the GA4 Data API which returns unsampled data for standard queries. Very large date ranges or complex queries may trigger Google's API sampling thresholds.Can Claude see real-time data?
Yes. CorpusIQ supports GA4's real-time reporting API for current active user counts.Does this respect GA4 data filters?
Yes. The API returns data based on the property's configured reporting identity and data filters.Next steps: Connect Google Analytics to Claude now →