Time series
get_timeseriesVisitors, sessions, pageviews, bounce rate, session time, revenue and new customers per hour, day, week or month.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date, inclusive (YYYY-MM-DD), for period "custom" | |
| from | No | Start date (YYYY-MM-DD), for period "custom" | |
| model | No | Revenue attribution model (defaults to the website's setting) | |
| period | No | Date range in the website's timezone. "now" is the last 30 minutes; "custom" uses from/to. | 30d |
| filters | No | Optional filters, each [dimension, operator, value], e.g. [["country","is","US"]]. Dimensions: the breakdown dimensions plus "goal"; operators: is, is_not, contains, not_contains. | |
| website | Yes | Website id or domain, e.g. example.com (see list_websites) | |
| interval | No | Bucket size (picked from the period when omitted) |