Events
matomo_eventsRetrieve custom event tracking reports (clicks, video plays, form interactions) grouped by category, action, or name, with configurable date range and segments.
Instructions
Custom event tracking reports (clicks, video plays, form interactions, ...), grouped by event category, action, or name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date for the report: 'today', 'yesterday', 'YYYY-MM-DD', a rolling window like 'last7' or 'last30', or a range 'YYYY-MM-DD,YYYY-MM-DD' (combine with period=range). | yesterday |
| limit | No | Maximum number of rows to return (-1 for all rows). | |
| period | No | Aggregation period for the report. | day |
| segment | No | Optional Matomo segment filter, e.g. 'deviceType==mobile;country==DE'. See https://matomo.org/docs/segmentation/ for the syntax. | |
| site_id | Yes | Numeric Matomo site ID. If unknown, call matomo_list_sites first. | |
| group_by | No | How to group the tracked events. | categories |