purchase
User purchased and completed the order
Function
web_event.track("product", "payment", {
items: [{list products properties}],
dims: {the relation items} // option
});
Sample data for event after user purchased and completed the order.
web_event.track("product", "purchase", {
items: [{
"type": "product",
"id": "864115",
"name": "Samsung Tivi 32 inch"
"sku": "5261971730647",
"brand": "Samsung",
"main_category": "Điện tử - Điện Lạnh",
"category_level_1": "Tivi",
"category_level_2": "Tivi samsung",
"price": 4999000,
"quantity": 1,
"image_url": "http://...",
"page_url": "http://..."
}],
dims: {
payment: {
"id": "1",
"name": "Online payment"
},
delivery: {
"id": "124",
"name": "Giao tận nhà"
},
shop: {
"id": "sh1",
"name": "Shop HCM"
},
warehouse: {
"id": "wh1",
"name": "Kho HCM"
}
},
extra: {
"order_id": "977895452",
"revenue": 4999000,
"discount_amount": 0,
"promotion_code": ""
}
});
Last updated
Was this helpful?