ga4_compare_periods
Compare two date periods in GA4 side-by-side over a dimension to identify changes in performance. Apply filters for country and channel.
Instructions
Compare two date periods in GA4 side-by-side over one dimension.
Args: period1_start: First period start YYYY-MM-DD period1_end: First period end YYYY-MM-DD period2_start: Second period start YYYY-MM-DD period2_end: Second period end YYYY-MM-DD dimension: Dimension to group by (default: "landingPagePlusQueryString") country: Country filter channel: Channel filter limit: Max rows in diff (default: 50)
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": {
"period1_start": "<period1_start>",
"period1_end": "<period1_end>",
"period2_start": "<period2_start>",
"period2_end": "<period2_end>"
},
"name": "ga4_compare_periods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| channel | No | ||
| country | No | ||
| dimension | No | landingPagePlusQueryString | |
| period1_end | Yes | ||
| period2_end | Yes | ||
| period1_start | Yes | ||
| period2_start | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |