One post, day by day
get_post_analyticsGet per-day views, unique readers, and clicks for one post to verify tracking and measure engagement over a date range.
Instructions
Views, unique readers and clicks for one post, per day. The way to check that a specific post's view landed after wiring up tracking: open the post in a real browser (headless browsers are not counted), wait about a minute for the rollup, then call this. A reader counts once per post per day. Requires the analytics.read grant.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Inclusive UTC day. Defaults to today. | |
| from | No | Inclusive UTC day. Defaults to 30 days ago. | |
| postId | Yes | The post id, as `post_...`. Not the slug. | |
| projectId | Yes | The project id, as `prj_...`. |