purchase
Log this event when one or more items are purchased. Use a unique transaction_id to help prevent duplicate purchase reporting. customer_type can identify new versus returning customers.
Parameters · 8
| Parameter | Description | Type | Required | Example |
|---|---|---|---|---|
| currency | Currency of the items associated with the event, in | string | Yes* | USD |
| transaction_id | The unique identifier of a transaction. | string | Yes | T_12345 |
| value | The monetary value of the event. | number | Yes* | 12.21 |
| customer_type | Whether the conversion is from a new or returning customer. Use new or returning; omit when uncertain. | string | No | new |
| coupon | The coupon name/code associated with the event. | string | No | SUMMER_FUN |
| shipping | Shipping cost associated with a transaction. | number | No | 3.33 |
| tax | Tax cost associated with a transaction. | number | No | 1.11 |
| items | The items for the event. | Array | Yes |