Sunday, July 15, 2012

Magento: How to add Google Analytics

Google Analytics (GA) is a free service offered by Google, that allows website administrators to monitor their website's traffic.

Magento supports two types of tracking:

E-commerce Tracking: which lists the customers that made purchase on that particular store and also tells what they bought.
Page View Tracking: which lists the origin from which your web store visitors linked to your store.

To use Google Analytics for any of these cases, first you will need to sign-up for Google Analytics account on Google.(URL:

Obviously, above step is necessary for those who don't have Google Analytics Account yet.(Otherwise you can use your existing account also)

Here you will need to add Account NameWebsite's URL and Time zone.

As soon as you fill these fields and sign up, you will be redirected to the page where you will get Tracking ID for your website.

Now copy this Tracking ID and login to your website's admin panel.

now go to System-->Configuration-->Google API.

Click on Google Analytics tab in content area.

Here you need to select Enabled to Yes, paste the Tracking ID, that you copied earlier in Account Number field.

Now save your configuration.

That's all set now.. Cheers.. :)


Magento-Developers said...

This post is extremely useful to those who started their career as a magento developer newly,thanks for posting. Magento Design India


Thanks for appreciating Magento-Developers.. :)

Rigel Acevedo said...

One should definitely take benefit of Google Analytics to know what is going around to our site. Internal site search reports are quite useful for ecommerce merchants to which many are not aware of.