consent/get-consent-log-statistics reads how many visitors accepted, rejected or partly accepted cookies.
It needs the site linked to a consent account, because these records do not live here.
At a glance
| Ability | consent/get-consent-log-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.
The three-way split is the interesting part. Accept-all and reject-all are the numbers people ask for; partial acceptance is the one that says something about the banner itself, because it only happens when a visitor opened the preference centre and made choices.
A site with almost no partial acceptances either has a banner nobody explores or categories nobody can tell apart — and which of those it is, is a question about the category descriptions, which are readable through consent/list-categories.
Record keeping also has to be switched on for there to be anything to count. That is a separate setting from being connected.
Input
This ability takes no input.
What comes back
| Name | Type | What it is |
|---|---|---|
statistics | object | Accepted, rejected and partially accepted counts. |
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 many people accept our cookie banner?
It resolves to one call:
{
"ability": "consent/get-consent-log-statistics",
"parameters": {}
}Worth knowing
- Needs a linked consent account. Nothing here links one.
- Needs consent record keeping switched on as well.
- Partial acceptance counts visitors who opened the preference centre.
Related abilities
- Get Consent Settings — check connection and record keeping
- Get Pageview Statistics — the denominator
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category