GA4 traffic from AI assistants
get_ga4_llm_trafficUse this when the user asks how much traffic AI assistants such as ChatGPT send to the site. Sessions, engagement, conversions (key events) and revenue referred to the site by ChatGPT, Perplexity, Microsoft Copilot, Google Gemini, Claude and 13 other AI assistants (identified by referrer domain and combined with GA4's own "AI Assistant" channel), from the GA4 property linked to the site, with the share of total traffic they represent and per-assistant and per-landing-page breakdowns, both sorted by sessions, highest first (sourceTimeseries by date). Not for every referral source: use query_ga4_report (dimension sourceMedium). Note: Google AI Overviews / AI Mode traffic carries no distinct referrer, is indistinguishable from google/organic, and is NOT included. llmShareOfSessions, engagementRate and bounceRate are fractions 0-1, not percentages. An assistant's activeUsers adds up its referrer domains (e.g. chatgpt.com + chat.openai.com), so a user who came through two of them counts twice; summary.activeUsers is exact. Returns a notConfigured result when Google Analytics is not connected or no GA4 property is linked. Date range is optional: omit startDate/endDate to analyze the last 28 settled days (data lags ~2-3 days).
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": {
"siteUrl": "<siteUrl>"
},
"name": "get_ga4_llm_traffic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of landing page rows returned. | |
| endDate | No | Optional. Window end as YYYY-MM-DD (e.g. 2026-05-31). You do NOT need to know today's date or the latest available date: omit this and the server uses the latest settled Search Console date (data lags ~2-3 days behind today). Never pass null or the string "null". | |
| siteUrl | Yes | ||
| startDate | No | Optional. Window start as YYYY-MM-DD (e.g. 2026-05-03). You do NOT need to know today's date. Omit BOTH startDate and endDate to analyze the last 28 settled days automatically (Search Console data lags ~2-3 days). Never pass null or the string "null". | |
| comparisonEndDate | No | Optional. End of the comparison period as YYYY-MM-DD. Provide BOTH comparison dates to compare two periods; omit both for no comparison (prev* fields are then 0 and hasComparison false). | |
| includeDailySplit | No | Include a per-assistant daily sessions split for the current period. | |
| comparisonStartDate | No | Optional. Start of the comparison period as YYYY-MM-DD. Provide BOTH comparison dates to compare two periods; omit both for no comparison (prev* fields are then 0 and hasComparison false). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new | No | ||
| hint | No | ||
| kind | No | Widget variant: "kpis", "table", or "sections". | |
| kpis | No | KPI cards (kind="kpis"). | |
| lost | No | ||
| note | No | Caveat about the result, when the tool returned one. | |
| rows | No | Data rows (kind="table"), each with every field of the tool's own row; columns name the ones drawn. | |
| notes | No | Caveats about the result, when the tool returned several. | |
| range | No | The window the numbers cover. | |
| scope | No | The brand, content group or topic cluster filter these numbers are narrowed to; absent when the call was unscoped and the numbers cover the whole property. | |
| title | No | ||
| blocks | No | Stacked sub-blocks (kind="sections"). | |
| counts | No | get_ranking_changes: the full size of each bucket before `limit`. | |
| deltas | No | get_site_summary: current minus previous (ctrPoints in percentage points). | |
| reason | No | ||
| source | No | ||
| thenBy | No | Secondary sort field, when the tool states one. | |
| account | No | ||
| columns | No | Column defs (kind="table"). | |
| current | No | get_site_summary: the window's totals (ctr 0-100, impression-weighted avgPosition). | |
| summary | No | Metric totals keyed by GA4 metric name. | |
| warning | No | A caveat that changes how the numbers read. | |
| coverage | No | How much of the property total the returned rows cover, with the property totals inline. Quote totals from here; do not sum the rows. | |
| declined | No | ||
| improved | No | ||
| nextStep | No | ||
| ordering | No | Sort order per list, when the result holds several lists. | |
| previous | No | get_site_summary: the comparison window's totals. | |
| sortedBy | No | Row field the rows are sorted by. | |
| timeZone | No | GA4 property's IANA reporting time zone. | |
| dailyRows | No | get_site_summary: the window day by day, oldest first. | |
| dimension | No | ||
| emptyText | No | ||
| scanLimit | No | ||
| siteScope | No | Set when GA4 numbers were narrowed to this site's hostnames because the property is shared with other sites. | |
| sortOrder | No | "asc" or "desc". | |
| thenOrder | No | The tie-break's direction, present only when it differs from sortOrder. | |
| totalRows | No | ||
| assistants | No | get_ga4_llm_traffic: one row per AI assistant (the table rows). | |
| comparison | No | The comparison window (get_site_summary, get_ranking_changes). | |
| dataSource | No | Where the numbers were read from: the warehouse or the live API. | |
| hasRevenue | No | ||
| pagination | No | Where this page of rows sits in the whole result, and how to fetch the next one. | |
| timeseries | No | get_ga4_overview with includeTimeseries: daily points, oldest first. | |
| partialDays | No | Requested days after settledThrough; their numbers are still incomplete. | |
| prevSummary | No | The comparison period's totals; null when it has no GA4 data. | |
| currencyCode | No | ||
| dataMaturity | No | ||
| emptyBecause | No | ||
| ga4OnlyCount | No | ||
| gscOnlyCount | No | ||
| hasEcommerce | No | ||
| landingPages | No | get_ga4_llm_traffic: landing pages of AI assistant sessions. | |
| matchedCount | No | ||
| methodLimits | No | ||
| hasComparison | No | ||
| notConfigured | No | ||
| totalSessions | No | ||
| prevTimeseries | No | The comparison period's daily points; null when it has no GA4 data. | |
| reauthRequired | No | ||
| settledThrough | No | Last day the data is complete through. | |
| comparisonRange | No | The comparison window of a GA4 view tool; null when there is none. | |
| ecommerceSummary | No | ||
| sourceTimeseries | No | get_ga4_llm_traffic with includeDailySplit: daily sessions per assistant. | |
| comparisonHasData | No | false when the comparison period has no data at all, so there is no comparison. | |
| matchedClickShare | No | A 0-1 fraction of the named-query clicks the estimates cover. | |
| prevTotalSessions | No | ||
| previousDailyRows | No | get_site_summary: the comparison window day by day, oldest first; absent for a window over 180 days. | |
| llmShareOfSessions | No | A 0-1 fraction. | |
| coverageUnavailable | No | Why coverage is null, when it is. | |
| warehouseLatestDate | No | Newest day the warehouse holds for the property; days after it in the range are missing, not zero. | |
| prevEcommerceSummary | No | ||
| prevLlmShareOfSessions | No |