Conversion Tracking

The conversion tracking is used for Hello Retail to report sales performance metrics as well as training the algorithms to learn more about popular products being purchased together.

Note: This function are only available via JavaScript!

Simply track a conversion, by parsing the key values of the order along to Hello Retail. Please make sure to replace 499.32, 110-2347, http://example.com/shop/product-1234 and http://examplec.mo/shop/another-product with the current total amount, order number and product URL’s of the order.

Example using product urls and event binding:

_awev=(window._awev||[]);_awev.push(["bind_once", "context_ready", function() {
ADDWISH_PARTNER_NS.api.conversion.track_sale({
total: 499.32,
orderNumber: '110-2347',
email: 'customer@example.com',
urls: [
'http://example.com/shop/product-1234',
'http://examplec.mo/shop/another-product'
]
});
}]);

Arguments

Argument

Type

Description

total

Number

The total value of the specific order.

orderNumber

String

The unique order ID.

email

String

Email of the customer.

urls

List of Strings

The list of product urls included in this specific order.

productNumbers

List of Strings

The list of product numbers included in this specific order.

Note: You should specify either urls or productNumbers, as provided in the product feed.