JSFiddle - React, Tailwind, and code Playground

by hslincoln

JavaScript

//JS for push into Criteo API
var products = [];
for (var i = 0; i < prodSku.length; i++) {
    products.push({ //copy the id from your table,
id: prodSku[i],//copy the price from your table,
        price: prodPrice[i],//copy the quantity from your table,
        quantity: prodQty[i]   
    });
}

//END JS for push into Criteo API
window.criteo_q = window.criteo_q || [];
window.criteo_q.push({
    event: "setAccount",
    account: 1185 },
{
    event: "setSiteType",
    type: "d"
},
{
    event: "trackTransaction",
    id: orderNum,
    item: products
});