traffic_health_check
Compare total GSC clicks with GA4 organic sessions to detect tracking gaps and assess traffic health as healthy, tracking gap, filter issue, or no GSC data.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | ||
| days | No | ||
| property_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |