Views, uniques and clicks
get_content_analyticsRetrieve reader activity for a CMSKite project's posts over a date range, including totals, daily trends, and top-read posts; if all zeros, check tracking integration.
Instructions
What readers did with a project’s posts over a date range: totals, a daily series, and the posts that were actually read. Read from rollups, so the answer is the same size whatever the traffic was. If everything is zero, call check_integration — that is a tracking problem far more often than it is a traffic problem. Requires the analytics.read grant.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>"
},
"name": "get_content_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Inclusive UTC day. Defaults to today. | |
| from | No | Inclusive UTC day. Defaults to 30 days ago. | |
| topPosts | No | How many of the best-read posts to include. Defaults to 10. | |
| projectId | Yes | The project id, as `prj_...`. |