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

As defined, the addtocart event automatically activates the JENTIS Data Layer State in JENTIS using the sendBeacon sending method.

Example

_jts.push({
  track: "product",
  type: "addtocart",
  id: "12345567",
  name: "Product Name"
});

_jts.push({
  track: "addtocart"
});

Properties for 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?