Breakdown
get_breakdown_comparedTop values of a dimension: channel, referrer, campaign, page, country, device and more. With previous set to 1, the period before too, to compare.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date, inclusive (YYYY-MM-DD), for period custom | |
| dim | No | The dimension to read by, e.g. channel, source_detail, page, country | |
| from | No | Start date (YYYY-MM-DD), for period custom | |
| sort | No | What to sort by | |
| limit | No | How many rows | |
| model | No | Revenue attribution model (defaults to the website's) | |
| period | No | Date range in the website's timezone, as on the dashboard: today, 24h, 7d, 30d (default), 90d, 12m, mtd, lastmonth, ytd, all, custom… | |
| search | No | Only rows containing this | |
| filters | No | Filters, each [dimension, operator, value], e.g. [["country","is","US"]] | |
| website | Yes | Website id or domain, e.g. example.com (see list_websites) | |
| previous | No | Set to 1 to add the period before, to compare |