Additionally we've also created a default History Change and Window Loaded trigger for all pages.
8. Lastly, it' time to create the Tags for the Triggers that we've made.
We'll be creating Universal Analytics Tags and the track type is Event.
Let's call the Category field as Ecommerce.
Let's call the Action field as event we're tracking, in this case Purchase
In the label, we're passing the Order ID (we created a Data Layer Variable for the same) of the purchase.
In the Value, we're passing the Total Price (we created a Data Layer Variable for the same) of the purchase.
*Note that you can name the fields as you require and pass values by creating and assigning different Data Layer Variables.
Use the general Universal Analytics Settings Variable you've created in Google Analytics Settings.
Enable overriding and in the Tracking ID mention the UA ID of the Google Analytics Container you want to pass the data to.
Lastly in More Settings within Ecommerce ensure that Enhanced Ecommerce is True. And check the Use Data Layer option.