Preview link statistics
get_preview_statsHow the site's shared preview link has been viewed: total views, unique visitors, average time spent, and views by design, device, OS and browser, plus when it was last opened, the most-viewed design and the most recent views. Use it to answer "has my client looked at the preview?". Each count is one visit; the site team's own looks are not counted. For the published site's traffic use the site analytics instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The site to act on | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. |