page_analysis
Join Google Search Console and Google Analytics 4 data at the page level to rank pages by opportunity score, combining impressions, engagement rate, and conversions.
Instructions
Join GSC and GA4 data at the page level and rank by opportunity score.
GSC rows are fetched with dimensions=["page"] (already aggregated per page). GA4 organic landing pages are fetched with a high limit to avoid truncation. Pages are joined on _normalize_url. Pages that appear in only one source get None for the missing fields.
opportunity_score = log10(impressions+1)10 + engagement_rate100 + log10(conversions+1)*20
engagement_rate is derived as engaged_sessions/sessions (GA4 native formula) because ga4_organic_landing_pages does not expose it directly.
Results are sorted by opportunity_score descending, truncated to limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | ||
| days | No | ||
| limit | No | ||
| property_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |