Add to Cart Tracking
Last updated
Was this helpful?
Use the addtocart tracking type to capture when a user adds a product to their shopping cart. This action marks a critical e-commerce event and should be accurately tracked with both product and interaction data.
product
addtocart
As defined, the addtocart event automatically activates the JENTIS Data Layer State in JENTIS using the sendBeacon sending method.
_jts.push({
track: "product",
type: "addtocart",
id: "12345567",
name: "Product Name"
});
_jts.push({
track: "addtocart"
});addtocartThe addtocart command itself does not have additional properties. All relevant data should be submitted with the associated product object.
Make sure to use type: "addtocart" on the product to associate it correctly with this interaction.
For tracking product quantities, pricing, and custom variables, refer to the E-Commerce Tracking.
Last updated
Was this helpful?
Was this helpful?