Purchase events
The sale event is a key element for measuring the performance of advertising campaigns. Installed on the order confirmation page, it collects key data about completed transactions, such as the order amount and purchased products. This information allows precise attribution of sales to the campaigns that led to these conversions.
To send the sale event, you need to execute the following code on the order confirmation page:
<script type="text/javascript">
window.vzbl_q = window.vzbl_q || [];
window.vzbl_q.push({
event: "purchase",
value: {
purchase_id: "CMD_NUMBER",
currency: "EUR",
items: [{
product_id: "sku910d",
brand: "FAMOUS BRAND",
price: 456.90,
quantity: 2
}]
}
});
</script>
purchase_id
The order number displayed on the order confirmation page
YES
alias
The customer identifier transformed with a hash function (MD5, SHA-256)
NO
currency
The currency's ISO code
YES
items[i].product_id
Unique identifier of the PO line product
YES
items[i].price
The purchase price of the product from the order line
YES
items[i].quantity
The quantity of the product from the order line
YES
items[i].offer_id
The unique identifier of the ordered offer
YES (marketplace)
items[i].seller_id
The merchant identifier of the product from the order line
YES (marketplace)
items[i].seller
The merchant name of the product from the order line
NO (marketplace)
items[i].brand
The product brand of the command line
NO
Dernière mise à jour