Knowledge Base
HomeMain site
HomeMain site
General SetupWebsite Snippets
API Endpoints
General SetupWebsite Snippets
API Endpoints
  1. Ecommerce Events
  • Customer Data
  • Ecommerce Events
    • Product Viewed
    • Product Added to Cart
    • Product Added to Wishlist
    • Product Removed from Cart
    • Cart Viewed
    • Checkout Started
    • Billing Address Added
    • Shipping Details Added
    • Payment Method Selected
    • Checkout Completed
  • Lead Generation Events
    • Lead Create
  1. Ecommerce Events

Product Added to Cart

Definition#

A product_added_to_cart event is recorded when a visitor adds a product, or multiple products, to their shopping cart on your website.

Usage#

This event is commonly used on ecommerce websites to track product additions to the shopping cart. When a visitor clicks on the "Add to Cart" button or takes a similar action to add a product to their cart, the product_added_to_cart event is triggered.

Common Schema#

The event is accompanied by a detail object containing information about the added product. The detail object must contain the following properties:
detail.currencyrequired
The currency in which the product's prices are expressed (Example: EUR).
detail.valuerequired
The total value of the event, usually representing the sum resulting from the current price of each product multiplied by its quantity. (Use a dot as the decimal separator.)
detail.productsrequired
An array containing details of the added product(s). Each product detail is an object with a standard structure.
Expand product object common schema
product

Example#

Modified at 2025-05-29 10:44:08
Previous
Product Viewed
Next
Product Added to Wishlist
Built with