
Integration · Company data
Connect Claude & ChatGPT to Google Analytics 4
Ask your AI how many users came from each traffic source last month, which countries grew, or what is happening on your site right now. It runs GA4 reports on your property with the dimensions and metrics you ask for, including pivot and realtime reports, and reads audience exports. Access is read-only, so the AI cannot change your Analytics setup.
Free plan, no credit card. Takes about a minute.
Try asking
“How many active users and sessions did we have last month, week by week?”
The AI runs a report for last month broken down by week, with active users and sessions.
“Which traffic sources brought the most sessions in September?”
It runs a report with sessionSource as the dimension, ordered by sessions.
“How many people are on the site right now, and from which countries?”
It runs a realtime report of recent activity by country.
What your AI can do
Reports
Run reports with date ranges, dimensions, metrics, filters, ordering and limits, or several reports at once.
Realtime and pivot
See recent activity with realtime reports, and cross-tab dimensions with pivot reports.
Dimensions, metrics and audiences
List available dimensions and metrics, check which ones can be combined, and read audience exports.
“Compare conversions by country and device for the last 90 days.”
It runs a pivot report with country and device as the two axes.
“Which custom events and dimensions does our property have?”
It lists the dimensions and metrics available for the property, including your custom ones.
“Show me the users in the newsletter audience export.”
It finds the audience export, checks that it is finished and reads the users in it.
9 tools for Google Analytics 4
These tools are switched on when you connect. You can switch any of them off, or require your approval before it runs.
check_report_compatibilityChanges dataCheck which dimensions and metrics can be combined in one report for a property (`properties_id`).get_audience_exportGet one audience export by `properties_id` and `audience_exports_id`, including its state.list_audience_exportsList the audience exports created for a property (`properties_id`).list_dimensions_and_metricsList the dimension and metric names available for a property (`properties_id`), including its custom ones. Use before building a report.query_audience_exportChanges dataRead the users in a finished audience export by `properties_id` and `audience_exports_id`, with optional `limit` and `offset`.run_multiple_reportsVisible to othersRun several reports at once for one property (`properties_id`); pass each report's settings in `requests`.run_pivot_reportChanges dataRun a pivot (cross-tab) report for a property (`properties_id`) with `date_ranges`, `dimensions`, `metrics` and `pivots`.run_realtime_reportChanges dataRun a realtime report of recent activity for a property (`properties_id`) with `dimensions`, `metrics` and optional `minute_ranges`.run_reportChanges dataRun a GA4 report for a property (`properties_id`, the numeric property ID) with `date_ranges`, `dimensions` (e.g. date, country, sessionSource) and `metrics` (e.g. activeUsers, sessions, conversions), plus optional filters, ordering and `limit`.
Set up in three steps
- 1
Pick the app
Create a free PipMCP account and choose Google Analytics 4 from the app list.
- 2
Paste your key
Paste the OAuth client ID and client secret from your own Google Cloud project, then sign in with Google once. In the Google Cloud console create a project and enable the Google Analytics Data API. Set up the OAuth consent screen, and add yourself as a test user if the app is in testing. Under Credentials create an OAuth client ID of type Web application with the redirect URI https://pipmcp.com/oauth/callback, and copy the client ID and secret.
- 3
Add the link to your AI
You get a personal MCP link. Add it to Claude, ChatGPT or Cursor:
Click your name, then Settings › Connectors › Add custom connector. Paste your link as the Remote MCP server URL. Switch it on from the + menu in a chat.
Questions
What can the AI do in Google Analytics 4?
It can run standard, pivot, realtime and batch reports for a GA4 property, list the dimensions and metrics you can use, and check which ones work together. It can also list and read audience exports. It only reads data.
Does the AI see my Google credentials?
No. Your OAuth client ID and client secret are encrypted at rest and never shown to the AI. After you save them, they are not shown again, not even to you. The AI only sees the results of the tools it calls.
Can I control what the AI is allowed to do?
Yes. You choose which tools are switched on. The connection asks Google for read-only access to Analytics, so the AI can run reports but cannot change properties, settings or data. Every tool call is logged.
Does it work with ChatGPT?
Yes. In ChatGPT go to Settings › Apps & Connectors › Advanced and turn on Developer mode, then add your PipMCP link. Developer mode needs a paid ChatGPT plan: Plus, Pro, Business or Enterprise. The same link also works in Claude (Settings › Connectors › Add custom connector), Cursor and other MCP clients.
What does it cost?
Google Analytics 4 connects with OAuth, and OAuth connections need the PipMCP Pro plan or above. PipMCP also has a free plan with no credit card, but it does not include this connection. Paid plans bill per completed task. You also need your own Google account with access to a GA4 property.
Where do I find my GA4 property ID?
In Google Analytics go to Admin > Property details. Reports use the numeric property ID, so tell the AI which property to use, and it runs your reports against that one.
Related integrations
Let your AI work in Google Analytics 4 today.
Start free. Your key stays encrypted, and you decide what the AI may do.
Connect Google Analytics 4 freePipMCP is not affiliated with Google Analytics 4. Product names are trademarks of their owners.




