Agents and MCP

Connect GA4 to ChatGPT, and ask about your own data.

Most GA4 questions end in a hunt through reports and explorations. Connect GA4 to LopeBase, add LopeBase as an app in ChatGPT, and ask the question you actually had: where signups come from, which page loses people, and what changed.

Read only. ChatGPT gets counts and rates, never individual visitors.

What it looks like in ChatGPT

One question, one tool call, and an answer built on your own GA4 numbers.

ChatGPT · LopeBase app

Which landing pages lose the most people? Use purchase as the goal.

read_sourcega4-acmelanding_pagesgoal: purchase

pagevisitorsbouncebought
/8,14041%96
/sale3,92078%12
/products/kit2,31036%71

/sale gets plenty of visitors but 78% leave right away and few buy. The product page converts about ten times better. Point the sale traffic at the product page first.

Outcomes, not just visits

Name a goal event, like sign_up or purchase, and channels, landing pages, and devices count who converted.

No report building

No explorations, no custom segments, no date pickers. ChatGPT asks for the cut it needs.

All your properties together

Each GA4 property is its own connection, so one chat can compare products.

How to connect GA4 to ChatGPT

Three steps. The first is the same for every app; the rest is specific to ChatGPT.

  1. 01

    Connect GA4 to LopeBase. Start free, add your site, press Connect with Google, and pick the GA4 property. You need no Google Cloud project and no API key. Google is only asked for read access.

  2. 02

    Add LopeBase as an app in ChatGPT. On a plan that can add custom apps, open Settings, then Apps, turn on developer mode under Advanced, and create an app with the address below. Pick OAuth as the sign in.

  3. 03

    Approve it and ask. ChatGPT opens a LopeBase page. Approve it for your workspace, start a new chat, turn on LopeBase from the tools menu, and ask your first question.

https://app.lopebase.com/api/mcp/chatgpt

ChatGPT moves these menus between releases, and which plans can add custom apps changes too. If you cannot find developer mode, OpenAI's help center lists what your plan includes. ChatGPT gets the read tools and the content tools; adding a key or connecting a new source always happens on LopeBase's own pages, never in the chat.

Without an app: give ChatGPT a GA4 export

If your ChatGPT plan cannot add custom apps, or you only have one question, a report download works with any plan that takes file uploads.

  1. 01

    Open the report in GA4. Go to Reports and pick the one that answers your question, like Traffic acquisition for channels or Landing page for entry pages. Set the date range.

  2. 02

    Download it as a CSV. Press Share this report at the top right, then Download File, then Download CSV.

  3. 03

    Attach it in ChatGPT and ask. Upload the file to a chat and ask your question. Say which property and dates it covers, since the file does not always make that clear.

An export is a snapshot: one report, one date range, only the rows on screen. Each new question that needs a different cut means another download, and conversions only show if the report already has them. That is the gap the app above closes.

GA4 prompts that work well in ChatGPT

ChatGPT is good at turning numbers into a decision. Start with these.

Pick a channel to invest in

Rank our channels by sign_up conversion rate, and say where to spend next month.

Visitors and conversions per channel, with a recommendation.

traffic_sourcesgoal_events

Explain this week

Traffic rose this week. What drove it, in plain words?

Daily trend plus where the extra visitors came from.

daily_pageviewstraffic_sources

Check mobile

Do phone visitors buy less than desktop visitors? By how much?

A big gap often means a checkout problem on small screens.

devices

Notice broken tracking

Did any goal event drop by more than half compared with the month before?

A sudden drop is often a broken tag, not a bad month.

goal_events

What ChatGPT can read from GA4

Seven datasets per GA4 property. Breakdowns cover the last 28 days and the trend up to 90. Pass any event as a goal to count conversions.

  • web_analyticsPageviews for 7 and 28 days, plus weekly and monthly users.pageviews_7d · pageviews_28d · wau · mau
  • daily_pageviewsPageviews and visitors per day.day · pageviews · visitors
  • top_pathsThe most viewed pages over the last 7 days.url · views · visitors
  • goal_eventsEvents that may count as a conversion, now and before.event · people_28d · people_prev_28d · people_7d
  • traffic_sourcesVisitors and sessions per channel. Add a goal for conversions.source · visitors · sessions · converters
  • landing_pagesVisitors and bounce rate per landing page.path · visitors · converters · bounce_rate
  • devicesVisitors per device. Add a goal for conversions.device · visitors · converters

More on each dataset: Google Analytics MCP. Connecting in the console: the GA4 connector. The same setup in other assistants: Claude, Codex, Cursor, and Gemini CLI.

Other ways to get GA4 into ChatGPT

LopeBase is not the only route. Here is how it compares with the two usual ones.

TopicScreenshots and exportsGoogle's Analytics MCP serverLopeBase
Getting the dataBuild a report or exploration, then export or screenshot it.Runs on your own computer. ChatGPT connects to servers on the internet, so you would have to host it yourself first.ChatGPT reads it from the GA4 Data API when you ask.
SetupNothing to set up.Python, a Google Cloud project with the Analytics APIs turned on, and gcloud credentials.Connect with Google, then add the app in ChatGPT.
ConversionsSet up a comparison or a funnel exploration by hand.Any Data API report you describe, funnels included.Name the goal event and every breakdown counts it.
Follow upsAnother export for each new question.Ask the next question in the same chat.Ask the next question in the same chat.
Several propertiesSwitch property, export again.Any property your Google account can see, one at a time.Every connected property in one place.
PriceFree.Free and open source.Free for one property. Paid plans from $19 a month.
Best whenYou need one chart for a slide.You live in Google Cloud and use a local agent like Gemini CLI or Claude Code.You want answers from GA4 every week, in ChatGPT.

Google's column is based on its own pages, checked October 2026. More detail: Google's Analytics MCP server vs LopeBase. New to all of this? Ask AI about your website traffic covers the basics.

GA4 and ChatGPT questions

Something else? Contact us.

Which ChatGPT plans can add LopeBase?

Plans that can add custom apps through developer mode. OpenAI decides which plans include it and changes that from time to time, so check their help center. LopeBase works on every LopeBase plan, including Free.

Can I connect GA4 to ChatGPT for free?

Yes. A CSV download from GA4 works on any ChatGPT plan that takes file uploads, as shown above. LopeBase Free covers one GA4 property with agent access; adding it as an app needs a ChatGPT plan with developer mode.

Does ChatGPT see who my visitors are?

No. LopeBase returns totals and rates per channel, page, and device. No visitor, IP address, or user ID ever reaches the chat.

Can I use Universal Analytics?

No. Google shut down Universal Analytics. LopeBase reads GA4 properties.

What if I don't know my goal event names?

Ask ChatGPT to list them. The goal_events dataset shows every event that could count as a conversion, with how many people triggered it.

Can ChatGPT connect GA4 for me?

It gives you a Connect with Google link that opens LopeBase, and you finish there in one click. Sign ins and keys never go through the chat.

Ask ChatGPT what GA4 is telling you.

Free for one property. No card. Agent access is on every plan.