Traffic_Health_Check
Sanity-check that Search Console and GA4 agree on how much organic traffic a site gets. Compares Search Console clicks against GA4 organic sessions for the same window and returns the ratio plus a diagnosis: under 0.5 means tracking_gap (GA4 is missing traffic Search Console can see, often a missing or misfiring tag), over 1.5 means over_counting (GA4 is crediting organic sessions Search Console never sent, often a tagging or medium-classification issue), otherwise healthy. A 10 to 20 percent mismatch either way is normal: the two systems count different events and attribute differently around redirects and consent banners, so only flag the extremes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Window length in days. Default 28. | |
| site_id | Yes |