Traffic over time
get_timeseriesVisits and pageviews per hour, day or week across a window, with any timeline annotations that fall inside it. Use it to find when something changed. With event_name, that custom event and its conversions per bucket instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, inclusive, YYYY-MM-DD; default today | |
| from | No | First day, YYYY-MM-DD; overrides period | |
| period | No | Window ending now; days are whole days in the timezone. Ignored when from is set. | 30d |
| filters | No | Keep only matching traffic; values of one dimension are OR-ed, dimensions AND-ed | |
| site_id | Yes | site_id from list_sites; a site name, slug or domain also resolves | |
| interval | No | Bucket size; default picks one that suits the window | |
| timezone | No | IANA zone for day boundaries; default the user's | |
| event_name | No | A custom event, as get_breakdown custom_events names it |