Skip to main content

Conversion script function

This function is used to send the purchase information of an ordered product to our conversion tracking system.

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
});
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.