Skip to main content

node-tracker.buildaddtocart

Home > @snowplow/node-tracker > buildAddToCart

buildAddToCart() function

Build a Add To Cart Event For tracking users adding items from a cart on an ecommerce site.

Signature:
declare function buildAddToCart(event: AddToCartEvent): PayloadBuilder;

Parameters

ParameterTypeDescription
eventAddToCartEventContains the properties for the Add To Cart event
Returns:

PayloadBuilder

PayloadBuilder to be sent to