Google Analytics E Commerce Data

[%SHOW_ORDER id:'[@ORDER_ID@]'%]
[%PARAM *header%]
<script type="text/javascript">
ga('require', 'ecommerce');

ga('ecommerce:addTransaction', {
'id': '[%URL_ENCODE%][@ORDER_ID@][%END URL_ENCODE%]', // Transaction ID. Required.
'affiliation': '[%URL_ENCODE%][@CONFIG:WEBSITE_NAME@][%END URL_ENCODE%]', // Affiliation or store name.
'revenue': '[@GRAND_TOTAL@]', // Grand Total.
'shipping': '[@shipping_price@]', // Shipping.
'tax': '[@tax_total@]' // Tax.
});

[%END PARAM%]
[%PARAM *body%]

ga('ecommerce:addItem', {
'id': '[%URL_ENCODE%][@ORDER_ID@][%END URL_ENCODE%]', // Transaction ID. Required.
'name': '[%URL_ENCODE%][@MODEL@][%END URL_ENCODE%]', // Product name. Required.
'sku': '[%URL_ENCODE%][@SKU@][%END URL_ENCODE%]', // SKU/code.
'category': '[%URL_ENCODE%][@CATEGORY_NAME@][%END URL_ENCODE%]', // Category or variation.
'price': '[@PRICE@]', // Unit price.
'quantity': '[@QTY@]' // Quantity.
});

[%END PARAM%]
[%PARAM *footer%]
ga('ecommerce:send');
</script>
[%END PARAM%]
[%END SHOW_ORDER%]
<!-- End Google E-commerce Tracking -->