correlate_domains
Is metric A related to metric B across two different data areas? Correlate two metrics from DIFFERENT domains over time — for example, do pages with worse Core Web Vitals get fewer Search Console clicks, or does rising market share track rising traffic. Fetches each metric as a time series, lines them up by week (or day/month), and returns Pearson and/or Spearman correlation with a significance value. Use for "does X move with Y?" questions that span search, web analytics, paid, market share or page experience. Correlation is not causation — the result includes a caveat.
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": {
"metric_a": "<metric_a>",
"metric_b": "<metric_b>",
"date_range": "<date_range>"
},
"name": "correlate_domains"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | Which correlation to compute: pearson (linear), spearman (rank-based, robust to outliers), or both (default). | both |
| metric_a | Yes | ||
| metric_b | Yes | ||
| date_range | Yes | Explicit date range, e.g. "2026-05-01 to 2026-05-31". Both endpoints are INCLUSIVE — the END day is covered (a 7-day range = 7 days). Quattr weeks run Sunday–Saturday; for "last week" use the most recent complete Sun–Sat span. | |
| granularity | No | Time bucket size used to line the two metrics up: day, week (default) or month. | week |