I want tot add a tracking code for Beslist.nl to my Magento site, but I'm not sure how to get it to work. This is the code I got from them:

Code:
    <script>
     var beslistQueue = [];
     beslistQueue.push(['setShopId', 'AABBCCDDEE']);
     beslistQueue.push(['cps', 'setTestmode', false]);
     beslistQueue.push(['cps', 'setTransactionId', 'AB12345']);
     beslistQueue.push(['cps', 'setOrdersum', 1155.94]);
     beslistQueue.push(['cps', 'setOrderCosts', 6.95]);
     beslistQueue.push(['cps', 'setOrderProducts', [
     ['UE46H7000', 1, 1099.00],
     ['FSB07B', 1, 49.99]
     ]]);
     beslistQueue.push(['cps', 'trackSale']);
    
     (function () {
     var ba = document.createElement('script');
     ba.async = true;
     ba.src = '//pt1.beslist.nl/pt.js';
     var s = document.getElementsByTagName('script')[0];
     s.parentNode.insertBefore(ba, s);
     })();
    </script>
The following variables need to be replaced:

AB12345 => Ordernumber

1155.94 => Ordertotal

6.95 => Shipping Costs

['UE46H7000', 1, 1099.00], ['FSB07B', 1, 49.99] => SKU, Qty, Price per product

Anybody any suggestions?

View more threads in the same category: