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.
window.reignat.transaction("checkout_completed")window.reignat.transaction("checkout_completed")eventNamestring
The transaction label stored with the event.
type"transaction"
The tracker sends transaction events with the transaction event type automatically.
pathstring
The current page path where the transaction was recorded.
sessionIdstring
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.
Examples
useEffect(() => { window.reignat.transaction("pro_upgrade")}, [])useEffect(() => { window.reignat.transaction("pro_upgrade")}, [])if (checkout.status === "complete") { window.reignat.transaction("checkout_completed")}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.