legal_consent_log_stats
Aggregate consent decision counts by action and banner version over a date range (default last 30 days). Requires manage_options and logging enabled via legal_put_consent.
Instructions
Aggregate consent decision counts by action and banner_version over a day range (both from and to are optional, default the last 30 days; the range cannot exceed 366 days). Requires manage_options. Logging itself stays off until legal_put_consent's log_enabled is set, which should only happen after the Datenschutz document has an 'einwilligungsnachweis' section describing it. Requires cvrt-legal 0.5.0+.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Range end, inclusive. Defaults to today. | |
| from | No | Range start, inclusive. Defaults to 30 days before to. | |
| site | Yes | Site id (see list_sites) |