This document will provide you with all information you need in order set up the e-commerce google analytics in order to track all the purchases on your website
Adding this code will allow you to track the purchase value on your website, giving you a better understanding of the buying behavior of your customers so you can target your marketing campaigns more efficiently
<script>
ga('require', 'ecommerce');
ga('ecommerce:addTransaction', { 'id': '[TRANSACTION-ID]', 'affiliation': 'my_website', 'revenue': '[TRANSACTION-TOTAL]'} );
[EVENTS]
ga('ecommerce:addItem', { 'id': '[TRANSACTION-ID]', 'name': '[EVENT-NAME]', 'sku': '[EVENT-ID]'} );
[/EVENTS]
ga('ecommerce:send');
</script>
After adding the script and receiving your first order from your website with the new code implemented you should allow for 24 hours so that the e-commerce results will be displayed in your google analytics account