compare_periods
Compare two date ranges side-by-side across queries, pages, devices, or countries to analyze performance changes with absolute and percentage differences.
Instructions
Compare two arbitrary date ranges side-by-side across any dimension (query, page, device, country). Shows absolute and percentage changes. Useful for before/after analysis, seasonal comparisons, or measuring the impact of changes. Requires synced data — run setup first if needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteUrl | Yes | GSC property URL. | |
| period1Start | Yes | Period 1 start date (YYYY-MM-DD). | |
| period1End | Yes | Period 1 end date (YYYY-MM-DD). | |
| period2Start | Yes | Period 2 start date (YYYY-MM-DD). | |
| period2End | Yes | Period 2 end date (YYYY-MM-DD). | |
| dimension | No | Dimension to group by. Default: "query". | |
| limit | No | Max rows. Default: 50. | |
| pageFilter | No | Filter by URL path (uses LIKE). |