GA4 breakdown report
query_ga4_reportUse this when the user asks how a site's GA4 traffic splits by one dimension. Runs ONE GA4 dimension breakdown for the property linked to a GSC Wizard site: channel, sourceMedium, page, landingPage, country, device, event, date (daily trend), hostName, firstUserChannel or firstUserSourceMedium. channel and sourceMedium attribute each session to its own source; firstUserChannel and firstUserSourceMedium attribute users to the source that first acquired them, as GA4's User acquisition report does (use those when the user asks about new users or first-user attribution). Each dimension carries its own metric set (returned in metrics); rows are sorted by the first metric, highest first (date breakdowns by date, oldest first). Not for site totals: use get_ga4_overview (rows stop at limit; do not sum them). Set secondaryDimension to "date" or "hostName" to split every row further, e.g. dimension "event" + secondaryDimension "date" shows on which days an event fired; each row then carries that field (dates as YYYY-MM-DD). Rows include prev* fields that are only meaningful when a comparison range is given (hasComparison); date breakdowns take no comparison range. Only the first limit rows are returned (truncated and note say when more exist); to follow one event, pass filters: { event: [""] }. When the GA4 property is shared with other sites, results are limited to this site's hostnames and siteScope says so (on a shared property a hostName filter narrows within that scope; only the owner can replace it). Rates (engagementRate, bounceRate) are fractions 0-1, not percentages. Returns notConfigured (not an error) 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>",
"dimension": "<dimension>"
},
"name": "query_ga4_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| 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 | ||
| dimension | 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). | |
| secondaryDimension | No | Optional second dimension that splits every row: "date" (per day) or "hostName" (per site/stream host). Must differ from `dimension`. | |
| 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 |
|---|---|---|---|
| hint | No | ||
| note | No | ||
| rows | No | ||
| range | No | ||
| reason | No | ||
| thenBy | No | ||
| account | No | ||
| listKey | No | Name of the top-level field that holds the rows sortedBy describes. | |
| metrics | No | ||
| siteUrl | No | ||
| nextStep | No | ||
| ordering | No | ||
| rowCount | No | ||
| sortedBy | No | ||
| timeZone | No | ||
| dimension | No | ||
| siteScope | No | ||
| sortOrder | No | ||
| thenOrder | No | ||
| totalRows | No | ||
| truncated | No | ||
| dataSource | No | ||
| propertyId | No | ||
| emptyBecause | No | ||
| methodLimits | No | ||
| hasComparison | No | ||
| notConfigured | No | ||
| reauthRequired | No | ||
| comparisonRange | No | ||
| secondaryDimension | No |