Skip to main content

node-tracker.buildecommercetransaction

Home > @snowplow/node-tracker > buildEcommerceTransaction

buildEcommerceTransaction() function

Build an Ecommerce Transaction Event Allows for tracking common ecommerce events, this event is usually used when a consumer completes a transaction.

Signature:
declare function buildEcommerceTransaction(event: EcommerceTransactionEvent): PayloadBuilder;

Parameters

ParameterTypeDescription
eventEcommerceTransactionEventContains the properties for the Ecommerce Transactoion event
Returns:

PayloadBuilder

PayloadBuilder to be sent to