POST /api/query-attribution — see the API reference.
Usage
Required flags
| Flag | Description |
|---|---|
--dimension <d> | Dimension to attribute by (e.g. utm_source, utm_campaign). |
--model <m> | first_click, last_click, or any_click. |
--window <days> | Attribution window. One of 1, 7, 14, 30, 60, 90, -1 (unlimited). |
--date-start <YYYY-MM-DD> --date-end <YYYY-MM-DD> | Date range. |
Optional flags
| Flag | Description | Default |
|---|---|---|
--filter <json> | Canonical Filter as JSON. attribution.utm_* fields and orders.* fields apply here. | |
--timezone <tz> | IANA timezone. | UTC |
--value-source <s> | orders or events. | orders |
--conversion-event <name> | Required when --value-source=events. | purchase |
upstack query for the shared output / interactive / from-file flags.
Examples
upstack filters --detail to see every field valid in
the attribution context with its operators.