Use the method below to log product views.
Code Block | ||
---|---|---|
| ||
var data = {
"OM.pv" : productCode,
"OM.pn" : productName,
"OM.ppr" : productPrice,
"OM.pv.1" : productBrand,
"OM.inv": inventory // Number of items in stock
};
visilabsApi.customEvent("Product View", data); |
Ui button | ||||||
---|---|---|---|---|---|---|
|