Skip to main content
POST
Track a conversion

Body

application/json
kid
string
required

Click id from the kid query param on the destination, or the tyl_kid cookie.

client
string

Workspace tracking key (trk_…). Required to match if the workspace has one.

event
string

Event name such as purchase or sign_up. purchase and sale count as sales.

kind
string

Optional override. Use sale to force a sale when the event name is custom.

value
number

Amount in major currency units (for example 49.99).

amount
number

Alias for value.

currency
string

ISO 4217 code. Defaults to the workspace currency.

orderId
string

Deduplicates reloads of a thank-you page.

Response

Credited, duplicate, or outside the attribution window.

ok
boolean
event
string
slug
string | null
duplicate
boolean
reason
enum<string>
Available options:
kid,
unknown,
bot,
client,
window