All that remains is to create variables in GTM assign them the required values and transfer them to GA. Creating Variables To create a new variable you need to go to GTM to the “Variables” tab and click the “Create” button. To create a new variable you need to go to GTM to the “Variables” tab and click the
Create” button. After that set the name of the variable its type in my case “Data Level Variable” and the condition for assigning the value. PC - EE - ecommerce.item Malaysia Email List condition. The string ecommerce.purchase.products means that this variable will take the value of the array of data that is

Already in the dataLayer. In the code for UA you can see that this line also shows the order in which the data array is accessed first ecommerce then purchase then products. In the code for UA you can see that this line also shows the order in which the data array is accessed first ecommerce then purchase then products. Next I move on to setting up variables.