To select the product list elements to be measured, add the configurations to the array "wt_pli".
window.wt_pli = window.wt_pli || [];
wt_pli.push({
selector: document.getElementById("list-item-1"),
data: {
product: "075eo2f002",
productPosition: 1,
// optional
productCost: "49.99",
productQuantity: "1",
productCategory: {
1: "100% cotton",
2: "normally",
6: "en",
7: "men",
8: "shirts"
},
customEcommerceParameter: {
1: "blue"
},
grossMargin: "25",
productVariant: "button-down design",
productSoldOut: "0"
}
});
JS