Skip to content

Google Analytics 4 integration: setup, access and data flow

The Google Analytics 4 integration connects one GA4 property to AI Rank Lab through a read-only Google sign-in (the analytics.readonly scope). AI Rank Lab then runs reports through the Google Analytics Data API when you ask a question or open a diagnostic, never writes to the property, and charges no credits for reading it. Setup takes three steps.

100 free credits on signup, no card. Reading your GA4 data costs no credits.

fieldnote.app4,571 credits

Settings · Google connections

Illustrative

Illustrative data
AI Rank LabGoogle Analytics 4Read-only · analytics.readonly
Access
Read-only
Properties
2
Read cost
0 credits
Google Analytics 4analytics.readonly
  • fieldnote.app · GA4selected
  • shop.fieldnote.app · GA4available
  • Writes to GA4none
Works alongsideGoogle Search ConsoleClaude (MCP)WordPress

What the GA4 connection feeds

One connection, four places that read it. Each one runs reports on your own property; none of them writes to it. To measure visits from ChatGPT and other AI answers, see the GA4 integration feature page.

Ask GA4 questions in plain English

Analytics chat turns a question into a GA4 report and explains the answer. Ask which landing pages lost conversions last month, or how many sessions came from chatgpt.com, without building an exploration.

  • Any GA4 metric or dimension your property records
  • Works on the property you selected
  • Follow-up questions keep the context
Analytics chat
fieldnote.app4,571 credits

GA4 Mastery · Chat

Illustrative conversation

Illustrative data
“Which landing pages lost conversions last month?”
  • /pricing-18% key events
  • /features/brand-visibility-9% key events
  • /blog/what-is-geo+4% key events

Revenue Leak: where the funnel loses money

Compares your conversion funnel with its own baseline and breaks the drop down by device, browser and step. An AI summary explains the most likely cause in a paragraph you can forward.

  • Funnel steps from your GA4 events
  • Split by device and browser
  • Baseline vs current period
GA4 Mastery
fieldnote.app4,571 credits

GA4 Mastery · Revenue Leak

Checkout funnel · vs previous 28 days

Illustrative data
Largest drop by segment
  • Safari · mobile · add_payment_info-38%
  • Chrome · mobile · begin_checkout-9%
  • Chrome · desktop · purchase+2%

Anomaly Engine: why traffic jumped or fell

Pick a spike or a drop and the engine finds the source, country or device that moved, then writes the root cause in plain English instead of leaving you to slice the report by hand.

  • Source, country and device breakdown
  • Plain-English root cause
  • Works on any date range
fieldnote.app4,571 credits

GA4 Mastery · Anomaly Engine

Drop on 14 Oct · sessions -27%

Illustrative data
Expected
642
Actual
469
-27%
Contributors
  • google / organic · India-61%
  • direct / noneflat

Spam Purger: clean the data before you trust it

Finds referral and bot spam in your property and writes a regex you can paste into a GA4 filter, so your reports and every answer above stop counting junk sessions.

  • Spam hostnames and sources listed
  • Ready-to-paste regex
  • You apply the filter in GA4 yourself
fieldnote.app4,571 credits

GA4 Mastery · Spam Purger

Illustrative findings

Illustrative data
Suspicious sources
  • free-traffic.example / referralspam
  • seo-offer.example / referralspam
  • Regexfree-traffic|seo-offer

Connect GA4 in three steps

No API keys and no tag changes. You sign in with the Google account that can see the property.

Sign in with Google

Open Analytics in your dashboard and click Connect. Google asks you to grant read-only access to Analytics (the analytics.readonly scope).

Google sign-inIllustrative
  • See your Google Analytics dataread-only
  • Edit or delete datanot requested

Pick a property

Every GA4 property your Google account can read is listed. Choose one; switch to another whenever you like.

PropertiesIllustrative
  • fieldnote.app · GA4selected
  • shop.fieldnote.app · GA4available

Ask and diagnose

Open chat, Revenue Leak, Anomaly Engine or Spam Purger. The same connection also feeds the free GA4 tools in the MCP connector for Claude.

Use GA4 from Claude
GA4 MasteryIllustrative
  • Chatready
  • Revenue Leakready
  • Anomaly Engineready
  • Spam Purgerready

Permissions and data flow

What the connection can see, how data moves, what it costs and how to remove it.

Data flow

Google Analytics → AI Rank Lab, on request. A report runs when you ask a question, open a diagnostic or call a GA4 tool over MCP; the rows come back from the Data API and are used to build the answer. Nothing flows back into GA4.

Access level

Read-only. The Google scope requested is analytics.readonly, so AI Rank Lab can run reports but cannot change settings, events or filters.

What is read

GA4 reports through the Google Analytics Data API: the metrics and dimensions a question or diagnostic needs, for the property you selected.

AI processing

Diagnostics and chat answers are written by an AI model from the report rows. The numbers come from GA4, not from the model.

Credits

Pricing

Reading GA4 data is free, including the ga4-report, ga4-realtime and ga4-properties MCP tools. Chat messages and AI diagnostics use credits.

AI referral traffic

AI referral traffic in GA4

Visits that arrive from links in ChatGPT, Perplexity or Gemini answers show up in GA4 by source. How to report on them is covered on the feature page.

Not covered

AI bot tracking

GA4 does not record AI crawler visits, because crawlers do not run JavaScript. AI bot tracking uses the AI Rank Lab tag for that.

Disconnect

Disconnect the account in the dashboard, or remove AI Rank Lab from your Google Account's third-party access page at any time.

Questions buyers ask us

Something else? Ask the team

What does the Google Analytics 4 integration do?

It connects your GA4 property to AI Rank Lab with read-only access so you can ask questions about your traffic in plain English and run three AI diagnostics: Revenue Leak, Anomaly Engine and Spam Purger.

How do I connect Google Analytics 4 to AI Rank Lab?

Open Analytics in the dashboard, click Connect and sign in with a Google account that can see the property. Approve read-only access, then pick the GA4 property. No tag changes or API keys are needed.

Can AI Rank Lab change my GA4 settings?

No. The only Analytics permission requested is analytics.readonly. Spam Purger writes a regex filter for you, but you apply it in GA4 yourself.

Is there an AI tool for Google Analytics that answers questions?

Yes, that is what analytics chat does. It reads your GA4 property through the Data API, picks the metrics and dimensions your question needs, and explains the result.

Does the GA4 integration use Gemini?

The GA4 diagnostics use a Google Gemini model to write their explanations. The figures in every answer come from your GA4 reports.

Can I see traffic from ChatGPT and Perplexity in GA4?

Yes, for visits where someone clicks a link in an AI answer: GA4 usually records the source as chatgpt.com or perplexity.ai. The GA4 integration feature page shows how to report on them. AI crawler visits are different: GA4 cannot see them, and AI bot tracking covers them.

How much does it cost?

Connecting and reading GA4 data is free. Chat messages and AI diagnostics use credits from your plan. New accounts get 100 free credits without a card.

Can I use my GA4 data inside Claude?

Yes. The AI Rank Lab MCP connector exposes ga4-report, ga4-realtime and ga4-properties to Claude and other MCP clients. They read the property you connected here and cost no credits.

How do I disconnect GA4?

Disconnect it from the Analytics section of your dashboard, or revoke AI Rank Lab in your Google Account under third-party apps with account access.

Connect GA4 and ask it something

Start with the free audit, or create an account and connect Google Analytics 4 in a few clicks.