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
Parameter | Type | Description |
---|---|---|
event | AddToCartEvent | Contains the properties for the Add To Cart event |
PayloadBuilder
PayloadBuilder to be sent to