TanqoryDocs

tanqoryExtMarketingPathToPurchase

  • Query
  • Orders and payments

The paths buyers took to the orders of [from, to] (shop days): an order's journey is its visitor's storefront visits in the 30 days up to the order (the visit its cart came from names the visitor). traffic (default MARKETING) keeps the orders whose journey has a visit of that kind.

Arguments

ArgumentTypeRequiredDefault
fromDate!Required
toDate!Required
trafficTanqoryExtMarketingTrafficOptional

Returns

TanqoryExtMarketingPathToPurchase!

FieldTypeDescription
currencyCodeCurrencyCode!
medianSecondsBetweenTouchpointsInt

Median seconds between two marketing visits of one journey.

medianSecondsToPurchaseInt

Median seconds from the first visit to the order.

medianTouchpointsFloat

Median number of marketing (not direct) visits before an order; null without visits.

ordersInt!

Orders counted (after the traffic filter).

ordersWithVisitsInt!

Orders with at least one recorded visit (the medians are over these).

paths[TanqoryExtMarketingPath!]!

Total sales by channel path, most sales first.

Example request

A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.

Set STORE_ID and TANQORY_ACCESS_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://api.tanqory.com/admin/2026-10/stores/$STORE_ID/graphql" \
  -H "Authorization: Bearer $TANQORY_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"query TanqoryExtMarketingPathToPurchase($from: Date!, $to: Date!) {\n  tanqoryExtMarketingPathToPurchase(from: $from, to: $to) {\n    currencyCode\n    medianSecondsBetweenTouchpoints\n    medianSecondsToPurchase\n    medianTouchpoints\n    orders\n    ordersWithVisits\n  }\n}","variables":{"from":"","to":""}}'

Built from commit c0b3fb3fdef7 · API version 2026-10