Google Analytics MCP for GA4 reports in Claude and ChatGPT

Connect Google Analytics 4 to your assistant when you want to ask which landing pages get used, how visitors arrived, or where important actions happen. Pick one named property and start with a small report. A reliable first read makes it easier to spot when a custom event or acquisition filter changes the meaning of a result.

By Adport3 min read

Create a free Adport Cloud account to follow the hosted setup instructions below.

Connect GA4 and enable one property

In Adport Cloud, choose the client or brand project and open Analytics & tracking. Connect Google Analytics 4 as an administrator of the Adport project, sign in with a Google account that can read the intended property, and select it. Enable it for agent access when the account picker is complete.

Use the numeric GA4 property ID. A measurement ID such as G-EXAMPLE identifies a tag stream and will not identify the property to the reporting API. The connection uses analytics.readonly, and selected analytics properties do not take up paid-media account slots.

Authorize the same project from your assistant

Follow the Adport setup guide for Claude, ChatGPT, or Codex. All three can use the hosted URL below. In the authorization screen, choose the project that has the GA4 property. For your first request, ask to confirm the property ID, reporting time zone, and currency.

https://app.adport.dev/mcp

If you see a property for another project, fix the project selection before asking for a report. If the expected property is absent, check Google access and verify that the property is enabled in Adport. Keep tokens and client secrets out of your prompt.

Read acquisition and landing-page outcomes

Try this prompt
For this project’s selected GA4 property, show sessions, conversions and purchase revenue by source, medium, campaign and landing page for the last 28 complete days. Include untagged traffic, reporting timezone and currency.

Call analytics_acquisition_report with provider ga4, the numeric property ID, inclusive dates and landing_page enabled. Follow the returned cursor when more rows are available. Google Analytics Data API: dimensions and metrics

Choose the key event you want to count

Use analytics_goals to identify a key event such as a completed lead form. Pass its ID in goal_ids. The report returns counts for that event alongside all sessions and purchase revenue for each acquisition group.

For example, suppose the same email campaign sent readers to a pricing page and a trial page. The landing-page report shows both paths separately, including people who never completed the form. If you compare that campaign with spend, add the two rows before joining the ad report. Match the actual campaign tagging or a mapping you have verified with the account owner. Keep traffic with missing tags visible so you can see how much of the result you could match. Open the native Google Analytics connector for event exploration or a question that needs custom dimensions.

Compare comparable periods and records

Use the property’s reporting time zone and a completed date range. Keep the same landing-page and acquisition definitions when you compare periods. Ask the assistant to disclose row limits and any thresholding or sampling reported by the provider. Use pagination when you need more rows. Realtime reports can check whether activity is arriving, while historical reports compare complete periods.

For organic impressions and search queries, use Search Console MCP. To compare paid Google Ads activity with what GA4 measured on your site, follow the Google Ads and GA4 conversion check.

Sources & further reading

Provider documentation for the setup and platform behavior described above.

Try Adport Cloud

Connect your ad accounts and run your first report with the free plan.

Start freeCompare plans

Message Yannick

Yannick, Adport founder
Hey, I’m Yannick, the founder.

Have a question? Send me a message. I read every one.

Your email and message are used to reply. Privacy

Prefer email? yannick@adport.dev ↗