Explain a change in traffic
explain_changeExplain why traffic rose or fell between two equal periods: break the change down by page, query, country, device, and search appearance, then show the biggest drivers and nearby Google updates.
Instructions
Answer "why did traffic go up or down?" between two periods of equal length. Splits the change by page, query, country, device and search appearance and says which slices account for most of it; separates clicks lost to fewer impressions from clicks lost to a lower CTR; and lists Google updates that ran in or near the periods. Defaults compare the last 28 days of final data with the 28 before.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Movers to list per breakdown and direction. | |
| metric | No | The metric whose change to explain. | clicks |
| filters | No | Explain the change within this slice only; combined with AND. | |
| site_url | Yes | The property, as listed by list_sites: 'sc-domain:example.com' for a domain property or 'https://www.example.com/' for a URL-prefix property. A bare domain such as 'example.com', or any URL on the site, is resolved to the property that contains it. | |
| breakdowns | No | Dimensions to split the change by. Omit for every one the search type has: page, query, country, device and searchAppearance. | |
| data_state | No | Defaults to 'final': fresh, still-changing data in the current period would read as a decline against a complete baseline. | final |
| current_end | No | Last day of the period to analyze. Defaults to 3 days ago, the last day that is usually final. | |
| fetch_limit | No | Top rows fetched per period and breakdown. | |
| search_type | No | web | |
| previous_end | No | Last day of the baseline; same length as current. | |
| current_start | No | First day of the period to analyze, YYYY-MM-DD (Pacific Time). | |
| previous_start | No | First day of the baseline. Defaults to the period just before. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| metric | Yes | ||
| totals | Yes | ||
| effects | No | ||
| summary | Yes | The findings in plain sentences. | |
| requests | Yes | The exact request bodies sent to Google. | |
| site_url | Yes | ||
| breakdowns | Yes | ||
| data_state | Yes | ||
| search_type | Yes | ||
| current_period | Yes | ||
| google_updates | Yes | Google updates and incidents in or near the periods. Timing alone does not show that one caused the change. | |
| previous_period | Yes |