Track Payment
track_paymentTrack payment events to link transactions to visitors for accurate revenue attribution and conversion tracking.
Instructions
Track a payment event for revenue attribution. Links payments to visitors for conversion tracking.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Customer name | |
| No | Customer email | ||
| amount | Yes | Payment amount (>= 0) | |
| renewal | No | Whether this is a subscription renewal (default: false) | |
| currency | Yes | Currency code in uppercase (e.g. USD, EUR) | |
| refunded | No | Whether this payment was refunded (default: false) | |
| timestamp | No | Payment timestamp in ISO 8601 format (defaults to now) | |
| customer_id | No | Customer ID in your system | |
| is_free_trial | No | Whether this is a free trial (default: false, auto-set if amount is 0) | |
| transaction_id | Yes | Unique transaction identifier | |
| datafast_visitor_id | No | DataFast visitor ID for attribution |