- RAW DATA
- PIVOT TABLES
- VALIDATION
- HUMAN
Short answer
How can I get custom GA4 reports using AI?
You tell your AI which dimensions and metrics you want to see, and it queries the Google Analytics 4 API to build the table. You'll get specific, multi-dimensional breakdowns without manually building reports in the GA4 interface.
The results you get
What your data looks like
The AI handles the heavy lifting of querying and structuring your analytics data.
RAW DATA
Direct metric pulls
The AI uses the connection to grab specific numbers like sessions or conversions. You get the raw values for the timeframes you specify.
PIVOT TABLES
Multi-dimensional views
Ask for data broken down by multiple categories at once. The AI builds a structured table that cross-references your chosen dimensions.
VALIDATION
Check your setup
Before running big queries, your agent can check if the dimensions you want are actually available in your property.
HUMAN
Final analysis
The AI provides the data tables, but you decide what the numbers actually mean for your business strategy.
The workflow
What your AI does when the request arrives.
Your agent acts as the bridge between your natural language questions and the Google Analytics 4 API.
Verify access
The agent first checks if your requested dimensions and metrics are compatible with your specific GA4 property.
check_compatibilityFetch data
Once confirmed, the agent pulls the specific data points you asked for from the API.
run_reportStructure tables
If you need a more complex view, the agent reorganizes the data into a pivot format.
run_pivot_reportPresent results
The agent formats the final data into a clean, readable table directly in your chat window.
run_report
Try it
Copy these to start.
Use these prompts to kick off your first data request.
Starting points
These are templates. Swap out the dimension and metric names with the ones you actually use in your GA4 property.
Google Analytics 4 Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_UmO7U4NMjZu3BRjA290BLgRmFALC6u5wgBjY3hkU/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat — Google Analytics 4 capabilities are ready to use.
{
"mcpServers": {
"google-analytics-4-mcp": {
"url": "https://edge.vinkius.com/vk_preview_UmO7U4NMjZu3BRjA290BLgRmFALC6u5wgBjY3hkU/mcp"
}
}
}Show me a report of sessions and page views for the last 30 days.
Create a pivot table showing conversions broken down by device category and country.
Check if I can query 'user_engagement' as a metric in this property.
Give me a table of active users by landing page for the previous week.
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect Google Analytics 4 once, then ask.
Follow the link to authorize the connection. Your credentials stay encrypted and secure, and you can immediately start asking questions in your preferred AI client.
Connect Google Analytics 4 to your AIFAQ
How this task behaves.
- 01
Can the AI change my Google Analytics settings?
No. The AI can only read data and run reports. It cannot modify your property settings, create new users, or change configurations.
- 02
Can I create a pivot table instead of a standard list?
Yes. You can specifically ask your agent to generate a pivot report to see how different dimensions intersect.
- 03
Will the AI delete any of my data?
No. This connection is read-only. The AI has no capability to delete or overwrite any data in your Google Analytics account.
- 04
How does the AI know which metrics are available?
The agent uses a compatibility check to verify that the dimensions and metrics you are asking for exist in your specific GA4 property.
- 05
Can the AI export these reports to a CSV file?
No. The AI generates the data tables within your chat interface. You would need to copy the table manually if you want it in a spreadsheet.
More questions about Google Analytics 4? See everything the Google Analytics 4 Connector can do
Connect Google Analytics 4 to Claude, Cursor, ChatGPT & more
