30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

Get Consent Statistics

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

Abilityconsent/get-consent-log-statistics
ToolsetCookieYes — toolset/cookieyes
GroupCookieYes › Reporting
RequiresCookieYes, active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI 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

NameTypeWhat it is
statisticsobjectAccepted, rejected and partially accepted counts.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent 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 the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading