Get analytics report
get_reportPre-aggregated event counts from the v1 API, at most 30 days per request, by date, hour, event name, source, browser or device. It has two things that run_report does not have: the connector filter (events delivered to one destination) and the v1 first-click attribution model. Sessions, channels, landing pages, goals, period comparison and longer ranges: run_report.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Filter by traffic source | |
| date_to | Yes | End date (YYYY-MM-DD) | |
| currency | No | Currency code, e.g. 'EUR', 'USD' | |
| connector | No | Filter by connector/integration | |
| date_from | Yes | Start date (YYYY-MM-DD) | |
| dimensions | No | Dimensions to break down by. Example: ['source', 'event_name'] | |
| event_name | No | Filter by event name | |
| attribution | No | Attribution model (default: last_click) | |
| granularity | No | Time granularity (default: daily) | |
| server_name | No | Server name (required when connected to multiple servers). | |
| container_id | Yes | Container ID (starts with "trc_") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| meta | Yes |