consent/get-pageview-statistics reads how many pageviews the consent banner was shown on.
This is normally the figure a consent plan is metered by, which makes it the number worth watching before a limit is hit rather than after.
At a glance
| Ability | consent/get-pageview-statistics |
| Toolset | CookieYes — toolset/cookieyes |
| Group | CookieYes › Reporting |
| Requires | CookieYes, active on the site |
| Capability | manage_options |
| Safety | Read-only — changes nothing |
| Repeatable | Idempotent — running it twice leaves the same result |
| Ships in | AcrossAI Abilities Manager 0.0.34 and later |
How it works
These figures are not kept on this site. There is no local table for them: the consent service records them and this reads them back, which means the site has to be linked to a consent account for there to be anything to read. Nothing here links an account — that is done on the plugin’s own screen.
It is also the denominator for everything else. An acceptance count means very little on its own; the same count against pageviews is a rate, and a rate is comparable across months and across changes to the banner.
Counting happens where the banner is served, so it measures banner impressions rather than site traffic. Pages excluded from the banner do not appear here, and neither do visits from people whose consent was already recorded if the banner does not re-render for them.
Input
This ability takes no input.
What comes back
| Name | Type | What it is |
|---|---|---|
pageviews | object | The pageview counts the consent service has recorded. |
success | boolean | Whether the call completed. |
message | string | A one-line summary of what happened, suitable for showing a human. |
error_code | string | Present only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation. |
Example
Ask your assistant:
How close are we to our consent plan limit?
It resolves to one call:
{
"ability": "consent/get-pageview-statistics",
"parameters": {}
}Worth knowing
- Needs a linked consent account.
- Counts banner impressions, not site traffic.
- Read it with the plan limits from
consent/get-scan-status.
Related abilities
- Get Consent Statistics — the numerator
- Get Cookie Scan Status — the plan limits
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category