traffic_health_check
Compare total Google Search Console clicks with total Google Analytics 4 organic sessions to detect tracking gaps, filter issues, or healthy traffic.
Instructions
Compare total GSC clicks with total GA4 organic sessions to detect tracking gaps.
Fetches aggregate GSC clicks (no page dimension) and sums all organic sessions from GA4. The ratio ga4_sessions / gsc_clicks indicates tracking health:
"no_gsc_data" : zero GSC clicks (ratio is None, nothing to compare)
"tracking_gap" : ratio < 0.6 (GA4 records far fewer sessions than GSC clicks)
"filter_issue" : ratio > 1.3 (GA4 records more sessions than GSC clicks)
"healthy" : 0.6 <= ratio <= 1.3
Boundaries 0.6 and 1.3 are inclusive of the healthy range (strict < and >). GA4 is queried with limit=10000 to avoid under-counting sessions on large sites. hostname and country narrow the GA4 query to a specific host or country.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| site | Yes | ||
| country | No | ||
| hostname | No | ||
| property_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |