Run an attribution query. WrapsDocumentation Index
Fetch the complete documentation index at: https://docs.upstackdata.com/llms.txt
Use this file to discover all available pages before exploring further.
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 |
|---|---|---|
--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.