compare_products
All your products side by side — lifetime or windowed (today / 7d / 30d / 90d) unique visitors, views, revenue totals with refunds netted, average revenue per conversion, revenue per visitor, and scan scores, sorted by any of them. Windowed numbers are computed exactly the way the dashboard computes them (same events, same windows), so they match the product page; lifetime visitors are the leaderboard's HLL estimate (~1.6%) and lifetime revenue comes from the payments ledger. Products and scores are always included; visitor columns and windowed revenue need the website_analytics subscription facility, revenue columns need analytics_conversion — gated columns come back null with a note instead of failing the call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max products returned. Default 50. | |
| order | No | Sort direction. Default: desc (biggest / newest first). | |
| range | No | Metric window. lifetime = all-time totals; the others are ROLLING windows over the last N UTC days ending today (each includes today so far) — like the dashboard, they are not calendar-day buckets. | |
| sortBy | No | Column to sort by. Products missing the chosen metric sort last. Default: visitors. |