query_trends
Retrieve event counts over time as a time series. Optionally break down results by a property to analyze trends.
Instructions
Run a trends query to get event counts over time. Returns a time series of event occurrences, optionally broken down by a property.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | Yes | List of event names to include in the trend query, e.g. ['$pageview', 'user_signed_up'] | |
| date_to | No | End of the date range. Defaults to now if omitted | |
| interval | No | Granularity of the time series | day |
| breakdown | No | Property to break results down by, e.g. '$browser' or 'plan' | |
| date_from | No | Start of the date range. Accepts relative values like '-7d', '-30d', or an ISO 8601 date | -7d |