Home » Magento SEO

Google Analytics in Magento

17 July 2009 No Comment

Google Analytics in Magento

Some of you who work with Magento for a long time might think that this topic is so clear that it doesn’t need to have an article. We get many inquiries to finalize the work somebody already started. One of the things we notice is that some developers tend to embed the Google Analytics code directly in the Magento theme files. Yes, it works and you will see the standard traffic data in the Google Analytics interface, but it is not a way to go.

In most of the cases, those developers edit footer.phtml in app/design/frontend/default/[your_theme]/template/page/html folder. As I said, the Google Analytics will track visitors data properly, but the main issue is that the eCommerce data will not be collected. To enable eCommerce data to be visible, first step is that you let Google Analytics to know that the profile is actually an E-Commerce site.

You will get to this interface by

  1. Logging to Google Analytics
  2. Select an account for this site
  3. On the list of Account profiles, do not go to the reports, click on Edit instead
  4. On the first box “Main Website Profile Information”, there is another Edit link to the right. Click on it.
  5. One there, you will see the interface similar to the one on this image. Let Google Analytics know this is an eCommerce website

Edit Profile in Google Analytics

Although Google Analytics will tell you to embed the javascript code on your website, you don’t have to do that. You just need to see what is the Web Property ID of the profile. One you know it, go to the Magento administration to the interface: System> Configuration> Google API> Google Analytics. Enable it and insert that Web Property ID. Viola.

Google Analytics Magento Admin

Forums say that older versions of Magento before 1.2 do not properly track eCommerce data. In case you have older version of Magento and have this issue, do not install some special plugins. Upgrade Magento instead.

By Tomislav Bilic from Inchoo.net

Related posts:

  1. Manual creation of Google Sitemap in Magento
  2. Magento SEO (search engine friendly Magento shopping cart)
  3. Magento SEO Development
  4. Contact Form in Magento
  5. Improving Magento Speed & Performance With MySQL Query Cache

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam Protection by WP-SpamFree

Security Code: