Conversion script function
This function is used to send the purchase information of an ordered product to our conversion tracking system.
- Payload
- Example
oz.conversion.sendPurchaseInformation({
purchaseId: string, // can be any id from your shop, e.g. order-id
productType: "bike",
productTitle: string,
productCode: string, // must be variant-id if product feed is used. Otherwise global-id should be used.
purchasedSize: string,
currency: string,
price: number, // must be greater than 0
quantity: number, // must be an integer and greater than 0
});
oz.conversion.sendPurchaseInformation({
purchaseId: "4473842171940"
productType: "BIKE",
productTitle: "Spark 930 green",
productCode: "50668134269202",
purchasedSize: "M",
currency: "EUR",
price: 1140,
quantity: 1,
});
important
It is mandatory to use the same product code you used on the product page with our sizing widget. This ensures that we can accurately deduce which buyers used the sizing widget beforehand.