How to add Google Analytics to Magento store

Google Analytics is a free Google service which allows the webmasters and web site administrators to monitor their web sites' traffic and conversion ratio.

Magento supports two types of tracking:

  • * Page View Tracking: Lists the origin from which your web store visitors linked to your store.
  • * E-commerce Tracking: Lists the customers that make purchases and what they buy.

First you need to sign up at You will receive a Google Analytics account number. Write it down since you will need it for the Magento configuration.

Then configure the Google Analytics tracking in Magento. Open the Magento Admin area and navigate to System->Configuration->Sales->Google API.

Expand the Google Analytics section.

Pick the Yes option from the Enable drop-down menu. Enter the Google Analytics account number in the Account number field. Click on the Save Config button.