Skip to main content

node-tracker.buildecommercetransactionitem

Home > @snowplow/node-tracker > buildEcommerceTransactionItem

buildEcommerceTransactionItem() function

Build an Ecommerce Transaction Item Event Related to the buildEcommerceTransaction() Each Ecommerce Transaction may contain one or more EcommerceTransactionItem events

Signature:
declare function buildEcommerceTransactionItem(event: EcommerceTransactionItemEvent): PayloadBuilder;

Parameters

ParameterTypeDescription
eventEcommerceTransactionItemEventContains the properties for the Ecommerce Transaction Item event
Returns:

PayloadBuilder

PayloadBuilder to be sent to