Add to Cart Tracking
Add to Cart Tracking
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.
Tracking Commands
product
addtocart
Example
_jts.push({
track: "product",
type: "addtocart",
id: "12345567",
name: "Product Name"
});
_jts.push({
track: "addtocart"
});
Properties for addtocart
addtocart
The 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?