/Docs
Register

Transactions

Record purchases, paid upgrades, or other revenue-like conversions from the same lightweight tracker.

Track a transaction

The browser tracker exposes window.reignat.transaction(). Pass a stable name for the transaction or conversion type.

checkout-success.ts
window.reignat.transaction("checkout_completed")
eventName

string

The transaction label stored with the event.

type

"transaction"

The tracker sends transaction events with the transaction event type automatically.

path

string

The current page path where the transaction was recorded.

sessionId

string

The browser session ID associated with the conversion.

When to call it

Call transactions only after the payment, upgrade, or conversion has succeeded. The safest place is usually a success page or a client-side callback after your server confirms the purchase.

Do not call transaction tracking before payment confirmation. Otherwise abandoned checkouts can look like revenue.

Examples

success.tsx
useEffect(() => {  window.reignat.transaction("pro_upgrade")}, [])
checkout.ts
if (checkout.status === "complete") {  window.reignat.transaction("checkout_completed")}

Current limits

Transaction events currently store the event name and visit context. Amounts, currencies, line items, and customer identities are not sent by the public tracker.

Want real amounts, orders, and conversion rate? Connect a payment provider with Revenue integrations to bring actual revenue into your reports.