Skip to developer documentation
Browse developer documentation
CLI documentation / Reports

Journeys

attriboo reports journeys

Read the complete routes visitors took, page by page, with visits, buyers and linked purchase value for each route.

Access: OAuth analytics:read or workspace key

Options

attriboo reports journeys options
FieldTypeDescription
--sitestringWebsite ID or domain. Required when the workspace has more than one website.
--periodstringSaved website timezone calendar selection. from and to override period.

Values: realtime, today, yesterday, 7d, 30d, 90d, 12m, wtd, mtd, qtd, ytd, all.

Default: 30d.

--fromstringInclusive website-local start date. Supply to as well.
--tostringInclusive website-local end date. Supply from as well.
--comparestringComparison range.

Values: previous_period, mom, qoq, yoy, none.

Default: previous_period.

--modelstringWhich visit gets credit for a sale, the same six rules as the dashboard's Credit menu.

Values: first_touch, last_touch, last_non_direct, u_shaped, linear, time_decay.

Default: first_touch.

--lookbackstringHow far back before each sale visits can get credit. Older visits get no credit; if none fall inside the window, the latest recorded visit keeps it. Larger-site database reports, visitor filters and cursors only accept all.

Values: all, 90d, 30d, 7d.

Default: all.

--filtersstringJSON array string of up to twenty visitor filters, for example [{"dim":"country","op":"is","value":"US"}]. Dimensions: source, channel, campaign, entry_page, page, hostname, country, device, browser, os, goal. Operators: is, is_not. Values are exact strings up to 500 characters. All filters must match the visitor across available history; report dates then select activity for that cohort. Unmatched payments are excluded. Crawler counts remain website-wide; spend requires every filter to be source/channel/campaign. Preserve filters when paging.
--limitintegerMaximum rows where supported.

Default: 50.

--cursorstringA returned next_cursor. Keep the same website, report, dates, model, visitor filters and funnel selection.
--journey-channelstringOnly visits whose first recorded entry came from this channel, for example AI Referral.
--journey-sourcestringOnly visits from this source, for example ChatGPT.
--start-pagestringOnly visits that started on this path, for example /pricing.
--outcomestringKeep visits with a new purchase, a goal, an outbound click, or without a purchase.

Values: all, purchased, goal, outbound, no-purchase.

Default: all.

--include-goalsbooleanAdd recorded goals as steps.
--rankstringOrder paths by visits or by linked purchase value.

Values: visits, purchase_value.

Default: visits.

--jsonbooleanCompact JSON instead of formatted JSON.
--csvbooleanCSV for the main row collection; nested values remain JSON cells. Cannot be combined with --json.

Read journeys

Replace example websites, dates and cursor values with your own. Running these commands makes real requests or changes the local session.

Terminal command
attriboo reports journeys --site shop.example.com --from 2026-10-01 --to 2026-10-07 --compare none --json

Example output

Illustrative stdout
{"site":{"id":"site_example","domain":"shop.example.com","currency":"USD"},"period":{"from":"2026-10-01T00:00:00.000Z","to":"2026-10-08T00:00:00.000Z","label":"Custom","timezone":"UTC"},"totals":{"visits":40,"visitors":31,"buyers":2,"new_purchases":2,"linked_value":39800},"unlinked_purchases":0,"paths":[{"steps":[{"kind":"page","label":"/pricing"},{"kind":"page","label":"/checkout"},{"kind":"purchase","label":"Purchase"}],"step_count":3,"visits":4,"visitors":4,"buyers":2,"new_purchases":2,"linked_value":39800}],"notes":"A visit ends after 30 minutes without activity."}

Rank buying routes by purchase value

Replace example websites, dates and cursor values with your own. Running these commands makes real requests or changes the local session.

Terminal command
attriboo reports journeys --site shop.example.com --period 30d --outcome purchased --rank purchase_value --json

Example output

Illustrative stdout
{"site":{"id":"site_example","domain":"shop.example.com","currency":"USD"},"period":{"from":"2026-10-01T00:00:00.000Z","to":"2026-10-08T00:00:00.000Z","label":"Custom","timezone":"UTC"},"totals":{"visits":40,"visitors":31,"buyers":2,"new_purchases":2,"linked_value":39800},"unlinked_purchases":0,"paths":[{"steps":[{"kind":"page","label":"/pricing"},{"kind":"page","label":"/checkout"},{"kind":"purchase","label":"Purchase"}],"step_count":3,"visits":4,"visitors":4,"buyers":2,"new_purchases":2,"linked_value":39800}],"notes":"A visit ends after 30 minutes without activity."}

Output fields

attriboo reports journeys output fields
FieldTypeDescription
siteobjectWebsite ID, domain and currency.
periodobjectSelected dates as UTC timestamps; to is exclusive.
totalsobjectvisits, visitors, buyers, new_purchases and linked_value across every matching route.
unlinked_purchasesintegerNew purchases with no recorded visit to link to.
pathsarrayMatching routes, ranked by rank.
next_cursorstring | nullWhen provided, pass this value to continue; null means the last page. Some small-site reports omit this field.
coverageobjectWhen provided, describes completeness, snapshot time and row coverage. Row limits apply to this page, not to headline totals.
notesstringHow journeys are counted.

site fields

site nested fields
FieldTypeDescription
idstringWebsite ID.
domainstringWebsite domain.
currencystringThree-letter currency.

period fields

period nested fields
FieldTypeDescription
fromstringInclusive UTC start.
tostringExclusive UTC end.
labelstringHuman-readable date selection.
timezonestringSaved website timezone.

paths[] fields

paths nested fields
FieldTypeDescription
stepsarrayThe route in order: kind (page, goal, outbound, purchase, end or more) and label.
step_countintegerSteps in the full route; steps can be shorter for very long routes.
visitsintegerVisits that took this route.
visitorsintegerDistinct visitors.
buyersintegerVisitors with a linked new purchase.
new_purchasesintegerLinked new purchases.
linked_valueintegerValue of linked new purchases, cents. Excludes refunds and renewals.

The data follows the journeys API contract. CLI JSON omits the REST envelope.

Behavior and limits

Money is integer cents in site.currency. Percentages use a 0–100 scale.

Matches Journeys & Funnels → Recorded paths. A visit ends after 30 minutes without activity.

Journeys follow visits, not revenue credit, so model and lookback do not change them. linked_value is not source revenue credit.

Larger sites use the database journey calculation and return next_cursor; keep the same website, dates and journey filters when continuing.

CLI JSON output is the API data object directly, without the REST status/data envelope. Default output is formatted JSON; --json is compact JSON.

CSV contains only the returned page's main row collection. Continue using returned next_cursor values rather than assuming a single CSV is a complete export.