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:
1
_awev=(window._awev||[]);_awev.push(["bind_once", "context_ready", function() {
2
ADDWISH_PARTNER_NS.api.conversion.track_sale({
3
total: 499.32,
4
orderNumber: '110-2347',
5
6
urls: [
7
'http://example.com/shop/product-1234',
8
'http://examplec.mo/shop/another-product'
9
]
10
});
11
}]);
12
Copied!

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.
Last modified 1yr ago
Copy link