Remove a Product from the Shopping Cart

When a user removes a product from their shopping cart on your website, indicating a change in their purchase decision.

web_event.track("product", "remove_cart", {
    items: [
        {
            type: "product",
            id: "{{product_id}}", // MD5("{{product_sku}}_{{region}}")
            name: "{{product_name}}",
            quantity: "{{product_quantity}}",
            cdp_source: "Staging" // Staging/Production
        }
    ],
    dims: {
        customers: {
            customer_id: "{{customer_id}}",
            name: "{{customer_name}}",
            email: "{{customer_email}}",
            phone: "{{customer_phone}}",
            cdp_source: "Staging" // Staging/Production
        }
    },
    extra: {
        cart_subtotal: "{{cart_subtotal}}",
        cart_item_count: "{{cart_item_count}}"
    }
});

Last updated