Conversion Tracking
The conversion tracking is used for Hello Retail to report sales performance metrics as well as train the algorithms to learn more about popular products being purchased together.
Note:
This function is 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 URLs of the order._awev=(window._awev||[]);_awev.push(["bind_once", "context_ready", function() {
ADDWISH_PARTNER_NS.api.conversion.track_sale({
total: 499.32,
orderNumber: '110-2347',
email: '[email protected]',
urls: [
'http://example.com/shop/product-1234',
'http://examplec.mo/shop/another-product'
]
});
}]);
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 4mo ago