consent_stats_get
Returns aggregated consent decision stats for the current product over a configurable window (default 30d, max 365d).
Returns aggregated consent decision stats for the current product over a configurable window (default 30d, max 365d). Returns integer percentages 0..100; due to per-bucket rounding the sum may be 99..101. Read-only.
Behavior
- HTTP
GET /consent/consent/stats
Arguments
Name | Type | Required | Description |
|---|---|---|---|
range | string | — | Time window for aggregation in days, e.g. "30d". Omit to use the server default (30d). Maximum: 365d. |
Response
Field | Type | Always | Description |
|---|---|---|---|
range | object | • | |
total | integer | • | |
custom_pct | integer | • | |
by_category | object | • | |
deny_all_pct | integer | • | |
accept_all_pct | integer | • |
Try it
Returns aggregated consent decision stats for the current product over a configurable window (default 30d, max 365d).