Skip to main content
Glama

GSCPAP - Google Search Console, GA4, Bing Webmaster Tools & PageSpeed MCP

GA4 traffic from AI assistants

ga4_ai_traffic
Read-only

Traffic from AI assistants (ChatGPT, Perplexity, Gemini, Claude, Copilot, ...): how much, which engines, which pages they send people to, and how it compares with Google organic on the same pages.

Use for "do AI assistants recommend my site?", "how much traffic does ChatGPT send?", "which of my pages does ChatGPT link to?", GEO / AEO / LLM visibility questions. This measures visits, the outcome of being recommended. It cannot see answers that mention the site without a click.

A session counts as AI traffic when GA4 put it in its "AI Assistant" channel OR its source is a known assistant. The channel alone misses about 10% (measured over 446 properties), filed as Referral; ai_sessions_outside_ai_channel says how many that was here.

property_id="all" returns one summary row per GA4 property the user can see (first 25), for comparing a portfolio of sites in one call.

Reading the result:

  • ai_to_organic is the comparable number across sites (AI sessions per Google organic session); ai_share_of_total depends on how much direct/paid/social traffic the site has.

  • Conversion numbers come from GA4 over exactly the AI sessions (sessionKeyEventRate, transactions, purchaseRevenue), never from dividing summed rows. Key events are whatever the property marked, so quote them next to transactions. Across 77 measured properties the AI key-event rate matched organic (median ratio 1.06): do not tell the user AI visitors convert better unless this property shows it.

  • pages lists where AI assistants land people, each with its organic sessions beside it. A page AI sends people to that Google barely does (or the reverse) is the finding to surface.

  • weekly_ai_sessions is by ISO week; the last week is usually partial.

  • engines[].key_events are summed key events, which exceed sessions wherever a session fires several. Take rates from ai_totals.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "property_id": "<property_id>"
    },
    "name": "ga4_ai_traffic"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNolookback window (1-365), default 90. AI traffic is small on most sites (median 1.3% of sessions), so short windows are noisy
intentNoOptional: the user's goal in a few words. No site names or URLs.
end_dateNooptional YYYY-MM-DD. Alone, the window is `days` days ending on this date
page_limitNolanding pages to return (1-100), default 20
start_dateNooptional YYYY-MM-DD. With it the window is start_date to end_date (or today), and days is ignored
property_idYesGA4 property id, or "all" for a per-property summary

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / intent
      Added value: +{
      +  "description": "Optional: the user's goal in a few words. No site names or URLs.",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / end_date
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "optional YYYY-MM-DD. Alone, the window is `days` days\nending on this date"
      +}
    • addedInput schema / properties / start_date
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "optional YYYY-MM-DD. With it the window is start_date\nto end_date (or today), and days is ignored"
      +}
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the read-only and open-world annotations, it explains the channel-OR-known-source classification, quantifies the Referral undercount and identifies its diagnostic field, and discloses the 25-property cap and usually partial final week. It also documents conversion and key-event semantics, including summed key events exceeding sessions and warnings against unsupported cross-site conversion claims.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and use cases are front-loaded, followed by a logical progression through classification, the special all-property mode, and result interpretation. It is long and dense, and the empirical benchmarks add bulk, but most of the detail addresses genuine invocation or interpretation risks rather than repeating the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter reporting tool with an output schema, it covers selection criteria, observability limits, classification behavior, portfolio mode, and the major output pitfalls. An agent has enough context both to invoke it correctly and to avoid presenting its ratios, conversions, pages, or weekly trends misleadingly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so most invocation details already come from the structured fields. The description nevertheless adds meaningful semantics for property_id="all": one row per accessible property, only the first 25, and the intended portfolio-comparison use.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

It identifies the resource and analysis precisely: GA4 traffic from AI assistants, including volume, engines, landing pages, and comparison with Google organic on those pages. This clear specialization distinguishes it from general GA4 overview, traffic-source, conversion, and top-page siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives concrete trigger questions, including ChatGPT traffic, linked pages, and GEO/AEO/LLM visibility requests. It also supplies an explicit boundary: use it to measure visits resulting from recommendations, not answers that mention the site without generating a click.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.