How to analyze Google Analytics with Claude

Sources, pages, AI traffic, bots, mismatched numbers and a weekly summary, with every prompt in full.

How to analyze Google Analytics with Claude

Claude is only as good as the question you ask it

I asked Claude where my traffic comes from. The table it gave me said my biggest referral source that month was Reddit, with 29 sessions, up from 2. I was about to be pleased. Then I asked Claude whether the traffic was real. It ran four more queries and corrected itself: all 29 Reddit sessions were one browser, one country, one screen size and one user. Reddit had not sent me 29 visitors. It had sent one person 29 times.

That is the lesson of this guide. Claude analyzes your GA4 (Google Analytics 4, the current Google Analytics) data fast, and the first answer is often not the final one. Ask the right questions in the right order, and check each answer.

There are six: where visitors come from, which pages bring them in and lose them, how much comes from AI assistants, whether the traffic is real, why two numbers do not match, and a weekly summary to paste to your team. It takes about 30 minutes, mostly reading answers.

Two ways to give Claude your data

RouteCostGood forLimit
Upload a CSV exportFreeSteps 1 to 4, one export per questionOne file is one table, and Claude cannot check itself against GA4
A connectorDepends on the connector. Adchestra is 10 requests free, then $2.95 a monthAll six steps, and any follow-up questionYou set it up once. See how to connect Claude to Google Analytics

For the CSV route, make a Free-form exploration under Explore in GA4 with the dimensions a step names (source, medium, landing page, country, browser) and the metrics sessions, total users and engaged sessions, then export it as CSV. In the prompts, replace "in the property example.com" with "in the file I uploaded, and use only the file".

With a connector, a connector can be switched off for a single chat. Click the plus button in the message box, open Connectors (or Plugins) and switch it on. I end every prompt with Read only. Do not change anything.

Step 01

Ask where your visitors come from

Start with the plainest question. In GA4 every visit is a session. Each session has a source (where the visitor was before, such as google or reddit.com) and a medium (the kind of source: organic, referral, none). Claude has to work with these exact fields, so say them.

Sources, compared
In the Google Analytics property example.com, show sessions and engaged sessions by session source / medium for the last 28 days and for the 28 days before that, in one table sorted by sessions. Tell me the exact date ranges and the exact metric names you used. Then say in three sentences where most of my traffic comes from and what changed between the two periods. Read only. Do not change anything.

Claude ran it and answered with the dates first: 2026-10-23 to 2026-11-19 and the 28 days before. It named the metrics, sessions and engagedSessions, and the dimensions, sessionSource and sessionMedium. Most of my traffic was (direct) / (none): 146 of 202 sessions. That is the usual answer. Direct means GA4 does not know where the visitor came from. It includes people who typed the address, but also every link that hides its origin.

How to check it

I ran the same report myself with the range "last 28 days" and got 151 direct sessions, not 146. My range included today, and Claude's did not. Neither is wrong. That is why the prompt asks for the exact dates. A number without dates is not a number.

It also asks for metric names. Engaged sessions are sessions that last longer than ten seconds or have two or more page views, and Google's page lists one more condition. If Claude writes "engagement" without naming the metric, ask which one.

Step 02

Ask which pages bring people in, and which lose them

In GA4 this takes many clicks, and people complain that even one page's views is hard to find. Claude does it in one question. A landing page is the first page of a session.

Landing pages and page views
Now pages. For example.com, use the same 28 full days as before and show the landing pages that bring people in: sessions, engaged sessions, engagement rate (engaged sessions divided by sessions, which you calculate) and screenPageViews. Then, for the same dates, show the pages with the most views using pagePath. Tell me which landing pages lose people (many sessions, low engagement rate) and which pages people actually read. Say what GA4 cannot tell me here. Show me the query you ran. Read only.

Claude made two queries and printed them: dimensions landingPage and pagePath, metrics sessions, engagedSessions and screenPageViews. My homepage started 169 of 202 sessions, with an engagement rate of 35.5%. The /connect page had 53.3%. It also noticed that /connect had 62 views but only 15 sessions starting there. So most people reach it from the homepage, not from outside.

It also explained that 15 sessions had the landing page (not set) and 0 views, which GA4 could not tie to a page. It said an engagement rate tells you that people left, not why. That is why I ask for "what GA4 cannot tell me".

How to check it

Add up the table. My landing-page rows came to 202 sessions, the same total as step 1, and page views summed to 259 in both reports. If two reports on the same dates disagree, ask Claude why before you trust either.

Step 03

Ask how much traffic comes from ChatGPT and other AI assistants

GA4 has no AI channel by default. A channel is GA4's grouping of sources into labels such as Organic Search or Referral, and the default channel group cannot be edited. So ask Claude to match the names itself.

AI assistant traffic
Which AI assistants send visitors to example.com? GA4 has no channel for this by default, so look at sessionSource and sessionMedium for the last 28 full days and also for the last 90 days. Match chatgpt, openai, claude, perplexity, gemini, copilot, you.com and similar names, with any medium. Show a table of source, medium, sessions, engaged sessions and total users, and then a second table of the landing page each one reached. List the exact source strings you found, and say which ones you matched on purpose and which ones you might have missed. Read only.
Claude's table of AI assistant traffic, with sessions, engaged sessions and users for 28 and 90 days.
Claude's table of AI assistant traffic, with sessions, engaged sessions and users for 28 and 90 days.

It found chatgpt.com / ai-assistant (8 sessions in 28 days, 12 in 90), chatgpt.com / organic (1) and openai / ai-assistant (2 in 90 days), all landing on the homepage. It found no claude, perplexity, gemini or copilot sources, and said that proves little: assistants that strip the referrer arrive as (direct), where such visits probably hide.

Copy the last line of the prompt. Claude listed names it saw and did not count, such as sites with "ai" in the name that looked like directories, and bing / organic, which could include Copilot clicks that GA4 does not separate. A list you can read beats a number you must trust.

Make it a permanent report

Asking Claude each time works. To get an AI row in GA4 itself, build a custom channel group with a rule on source, using the exact strings Claude found in your data.

Step 04

Ask whether the traffic is real

This step corrected my Reddit number, and people skip it. GA4 automatically filters known bots and spiders, and you cannot turn that off or see what it removed. What is left is traffic GA4 did not recognize, and some of it is still not a person.

The signs are simple: many sessions from very few users, a country with plenty of sessions and little engagement, hostnames that are not yours, and many visitors with the same unusual browser and screen size. Claude can check all four at once.

Bot and spam check
Is this traffic real? Check example.com for bot and spam traffic for the last 28 full days. Run these checks with real queries and show each result as a small table: (1) sessionSource and sessionMedium with sessions, totalUsers, engagedSessions, so I can see sources with many sessions but very few users; (2) country with sessions and engagedSessions, flagging countries with plenty of sessions and almost no engagement; (3) hostName with sessions, to find traffic on hostnames that are not my own; (4) deviceCategory and screenResolution or browser if you can, for oddly uniform visitors. For each flag, say whether it is a fact or a guess and how I could confirm it. Do not tell me traffic is bots unless the numbers show it. Read only.
Check 1 of Claude's answer: reddit.com has 29 sessions and 1 user.
Check 1 of Claude's answer: reddit.com has 29 sessions and 1 user.

It flagged two groups and labeled each as fact, guess or how to confirm:

  • Reddit, 29 sessions, 1 user. Fact: all 29 were India, Chrome, 1920x1080. It then wrote that this changed its earlier reading: "Reddit did not send 29 visitors; it sent one browser 29 times." It guessed a revisiting person or a script, and said to check date and hour.
  • Finland, 28 sessions, 28 users. Fact: all (direct), all the browser "Mozilla Compatible Agent", all at 1280x720, and 26 of them engaged. Its guess: a monitor or scanner, and high engagement does not clear it, because a script that waits ten seconds counts as engaged.

There was only one hostname, my own. Claude noted that this rules out copied-site spam but not fake hits sent straight to GA4, because a sender can fake a hostname.

How to check it

I ran sessions by date and country myself. Finland had about one session a day, on almost every day of the range. That looks like a daily check, not a crowd. For Reddit, I ran source, country, browser and screen resolution together and got the same row: 29 sessions, 1 user, 0 new users. The "Reddit surge" was one returning visitor.

Claude never said "bots" as a verdict. It wrote that excluding the two groups was "arithmetic, not a verdict." The last sentence of the prompt buys that.

What to do about it

If it is your own team or tools, filter out internal traffic by IP address. If it is something you do not control, leave it in and ask Claude for figures with and without that group. Two numbers beat one guess.

Step 05

Ask why two numbers do not match

"GA4 says one thing, my ads platform says another" is a common complaint. Most mismatches are not errors: two tools count different things. These are the usual reasons:

You compareWhy they differSource
Users and sessions in GA4One user can have many sessions. In my range GA4 showed 146 total users, 202 sessions and 259 page views, and all three are right. Total users and active users also differ: a visitor who leaves within ten seconds can count only as a total user.Understand user metrics
Google Ads clicks and GA4 sessionsGoogle Ads counts clicks, GA4 counts sessions. Several clicks in one visit are one session. A bookmark return can add sessions with no new click. A click where the visitor leaves before the page loads is a click and no session. Google Ads also filters invalid clicks. Analytics data can lag up to 24 hours.About Google Analytics data in Google Ads reports
Anything and GA4, when visitors decline cookiesIf a visitor denies analytics consent, GA4 may fill the gap with modeled data instead of counting the person, and that depends on how consent mode is set up. A blocked tag means no modeling at all.Consent mode on websites and apps
Conversions in GA4 and in Google AdsTheir attribution settings and time zones can differ. Google Analytics uses the property time zone, Google Ads uses the account time zone. Attribution can also be set to paid only in one and paid and organic in the other.Select attribution settings
Two GA4 reports on the same datesDifferent date range (today included or not), different property time zone, or a filter in one of them.Step 1 of this guide

When two numbers disagree, give Claude both and where each came from, and let it say which reasons are possible, not which is true.

Explain a mismatch
Two numbers do not match. In GA4 for example.com I see [number] sessions from google / cpc for [exact dates]. In Google Ads I see [number] clicks for the same dates. Using GA4 data, check these, one at a time, and show the query for each: (1) the exact date range and the property time zone; (2) sessions versus totalUsers for the same filter; (3) how many sessions have no source; (4) whether the number moves if I include or exclude today. For each reason that could explain a gap, say what the documentation says and whether my data shows it, as a fact or as a guess. Do not give me one cause unless the numbers show it. Read only.

A mismatch is often several small causes together. If Claude names one with confidence, it probably picked the first plausible one.

Step 06

Turn it into a weekly summary

Put the steps in one message you can send every Monday. Tell Claude what to compare and how long to write, and to run fresh queries, or it reuses numbers from earlier in the chat.

Weekly summary
Write a weekly summary of example.com that I can paste to my team. Use the last 7 full days and the 7 days before them, and print both date ranges at the top. Run fresh queries for it, do not reuse numbers from this chat. Sections: Visitors (totalUsers, sessions, engagedSessions), Where they came from (top five source / medium rows), AI assistants (sessions from chatgpt, openai, claude, perplexity, gemini and copilot sources), Pages (top three landing pages), and Data quality (anything that looks like one visitor or a script, such as many sessions from one user). Compare every number with the 7 days before and write the change as a number, not an adjective. Keep it under 150 words, plain text, no bold, no emoji. After the summary, list the exact metric names and the queries you ran. If a number comes from a guess and not from a query, mark it with a question mark. Read only.

Claude gave me a plain-text block that starts with both date ranges, 2026-11-13 to 2026-11-19 and 2026-11-06 to 2026-11-12. Each number carries its change from the week before in brackets. Its data quality line was: "Finland, browser Mozilla Compatible Agent, 1280x720: 7 sessions from 7 users (prior 7 from 7, change 0), possibly a script?"

How to check it

I ran the two totals myself for the same dates and got the same users, sessions and engaged sessions. Do that once, then spot-check one number a week. A wrong number pasted to a team is worse than no summary.

Rules for not being fooled

  1. Always ask for the date range and the exact metric names. Sessions, users, engaged sessions and views are different things. "Traffic" is not a metric.
  2. Ask Claude to show the query it ran. Then run the same report in GA4 and compare.
  3. Compare with the period before, of the same length, and a year earlier if your business is seasonal.
  4. Distrust any number it gives without calling a tool. If the answer has no "Used" line for the connector and no file was uploaded, a figure is a guess.
  5. Ask "fact or guess" for every flag, and what the data cannot tell you. Consent, missing referrers and one-session rows all hide things.
  6. Ask a second question before you act. My Reddit "surge" fell apart with one more question.

Frequently asked questions

Can Claude read my Google Analytics without a connector?

Not live. Export a report as CSV and upload it, and Claude analyzes that file. A new question may need a new export. A connector lets it run reports itself.

Why does Claude give a different number than GA4?

Most often the date range or the metric differs. Ask Claude for the exact dates and metric names, then run the same report in GA4. Check whether your range includes today and whether you compare users with sessions.

How do I see traffic from ChatGPT in Google Analytics 4?

Look at session source and medium for names such as chatgpt.com and openai. Assistants that send no referrer land in direct traffic. For a permanent view, create a custom channel group on those source names.

Does GA4 filter bot traffic by itself?

It filters known bots and spiders automatically, and you cannot switch that off. Unknown ones get through, so look for many sessions from few users, uniform browsers and screen sizes, and countries with no engagement.

Is it safe to let Claude into my Google Analytics?

Reports only read your data. Keep the connector on "Allow once" for anything that would change your property, and end prompts with "Read only. Do not change anything."