GA4 traffic overview
get_ga4_overviewUse this when the user asks how much GA4 traffic a site had, or how it changed against the previous period. GA4 summary for the property linked to a GSC Wizard site: sessions, active/total/new users, page views, engagement rate, session duration, bounce rate, event count, and key events, with an automatic previous-period comparison (prevSummary). Not for Search Console clicks: use get_site_summary; for a split by channel or page use query_ga4_report. When the comparison period has no GA4 data at all (e.g. before the data stream existed), comparisonHasData is false and prevSummary is null instead of all zeros. Set includeTimeseries for daily points (timeseries, oldest day first). engagementRate and bounceRate are fractions 0-1, not percentages; averageSessionDuration is in seconds. Returns notConfigured (with a reason and hint) instead of data when Google Analytics is not connected or no GA4 property is linked to the site in GSC Wizard. 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_overview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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". | |
| filters | No | Optional GA4 dimension filters applied to every report in the call. Within a list field the values OR together; different fields AND together. Omit entirely for unfiltered data. | |
| 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 baseline / comparison period as YYYY-MM-DD. Omit both comparison dates to use the same-length period immediately before the current window; give only this one to end a baseline of the same length here. | |
| includeTimeseries | No | ||
| comparisonStartDate | No | Optional. Start of the baseline / comparison period as YYYY-MM-DD. Omit both comparison dates to use the same-length period immediately before the current window; give only this one to start a baseline of the same length here. |
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 |