Skip to content

Conversions

Conversions are tracked as journey events with event_type: "conversion". Once ingested, query conversion summaries, timeseries, breakdowns, and time-to-convert analysis.

Send a conversion event via the journey ingestion endpoint (requires the journey:write API key permission):

Terminal window
curl -X POST https://qck.sh/public-api/v1/journey/events \
-H "X-API-Key: qck_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"events": [
{
"link_id": "550e8400-e29b-41d4-a716-446655440000",
"visitor_id": "user-123",
"session_id": "sess-abc",
"event_type": "conversion",
"conversion_name": "purchase",
"revenue_cents": 4999,
"currency": "USD",
"page_url": "https://example.com/thank-you"
}
]
}'
FieldTypeRequiredDescription
event_typestringYesMust be "conversion"
conversion_namestringYesName of the conversion (e.g. "purchase", "signup")
revenue_centsnumberNoRevenue in cents ($49.99 = 4999)
currencystringNoISO 4217 code: 3 uppercase letters (e.g. USD). Defaulted to USD only in webhook payloads; revenue totals are currency-agnostic

All other journey event fields (link_id, visitor_id, session_id, page_url, etc.) apply as well. See Journey Tracking for the full field reference.

Aggregate conversion metrics across all links:

Terminal window
curl "https://qck.sh/public-api/v1/conversions/summary?period=30d" \
-H "X-API-Key: qck_your_api_key_here"

Returns total conversions, unique converters, total revenue, average order value, and conversion rate.

Conversion counts and revenue over time:

Terminal window
curl "https://qck.sh/public-api/v1/conversions/timeseries?period=30d&interval=day" \
-H "X-API-Key: qck_your_api_key_here"

Intervals: hour, day, week, month.

Break down conversions by dimension:

Terminal window
curl "https://qck.sh/public-api/v1/conversions/breakdown?period=30d&dimension=country" \
-H "X-API-Key: qck_your_api_key_here"

Dimensions: device, country, link, name.

How long from click to conversion:

Terminal window
curl "https://qck.sh/public-api/v1/conversions/time-to-convert?period=30d" \
-H "X-API-Key: qck_your_api_key_here"

Returns distribution buckets, average seconds, and median seconds.

All conversion endpoints support optional scope filters:

ParamDescription
periodTime window: 24h, 7d, 30d, or 90d
domain_idFilter to a specific custom domain
link_idFilter to a specific link