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

Start free trial

Get Pageview Statistics

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

Abilityconsent/get-pageview-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.

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

NameTypeWhat it is
pageviewsobjectThe pageview counts the consent service has recorded.
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 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 the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading