Monday 27 June 2016

Google Analytics-8 E-commerce Tracking

Google Analytics-8 E-commerce Tracking:
==========================


Enable Ecommerce in your reports:
-----------------------------------


You need to enable Ecommerce reporting in the view in which you want to see the data.

    Sign in to your Analytics account.
    Navigate to the desired account, property and view.
    In the VIEW column, select Ecommerce Settings.
    Click the Enable Ecommerce toggle ON.
    Optional: Click the Enable Related Products toggle ON.
    Click Next step.
    Click Submit.


Tracking setup with Google Tag Manager:
---------------------------------------
--

Ecommerce Tracking

There are two main types of of ecommerce implementation methods:

Standard ecommerce reports in Google Analytics allow you to analyze purchase activity on your site or app. You can see product and transaction information, average order value, ecommerce conversion rate, time to purchase, and other data.



<script>
window.dataLayer = window.dataLayer || []
dataLayer.push({
   'transactionId': '1234',
   'transactionAffiliation': 'Acme Clothing',
   'transactionTotal': 38.26,
   'transactionTax': 1.29,
   'transactionShipping': 5,
   'transactionProducts': [{
       'sku': 'DD44',
       'name': 'T-Shirt',
       'category': 'Apparel',
       'price': 11.99,
       'quantity': 1
   },{
       'sku': 'AA1243544',
       'name': 'Socks',
       'category': 'Apparel',
       'price': 9.99,
       'quantity': 2
   }]
});
</script>
   

Enhanced ecommerce adds functionality by allowing you to see when customers have added items to their shopping carts, when they have started the checkout process, and when they have completed a purchase. You can also use Enhanced Ecommerce to identify segments of customers who are falling out of the shopping funnel.

function() {
 var ecommerceData = {
   'ecommerce' : {
     currencyCode : 'EUR',
     // add additional parameters as needed...
   }
 };
 return ecommerceData;
}

Both methods of ecommerce tracking can be implemented with Google Tag Manager:

No comments:

Post a Comment