Get site traffic (analytics proxy)
get_site_trafficFetch site traffic metrics from Plausible or umami and return normalized numbers for the board. If unavailable, returns the request URL so you can retrieve the data manually.
Instructions
Read proxy for site traffic: fetch the configured provider's stats (Plausible/umami) using the FEATUREBOARD_ANALYTICS_KEY env var and return normalised numbers so the board can show traffic. Degrades gracefully — when disabled, unconfigured, or missing a key it returns the exact request URL so you can fetch it yourself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Override the configured window, e.g. 7d, 30d. | |
| metrics | No | Override the configured metrics list. | |
| project | Yes |