The script below should be executed only on the order confirmation page (before or after the main tag). It must be fired only once per confirmed order.
Important — The sample data after 'id', 'revenue', 'shipping' and 'tax' must be replaced with the real transaction information.
<script type="text/javascript">
window._uxa = window._uxa || [];
window._uxa.push(['ecommerce:addTransaction', {
'id': '123', // mandatory - Transaction ID
'revenue': '9.99', // mandatory - Transaction's total cost
'shipping': '2', // optional - Delivery costs
'tax': '1.29' // optional - Taxes costs
}]);
window._uxa.push(['ecommerce:send']);
</script>
fhjjff