Saturday, 4 May 2013


Google Analytics shows you how people found your site, how they explored it, and how you can enhance their visitor experience. With this information, you can improve your website return on investment, increase conversions, and make more money on the web. For those that are new to Google Analytics or even if you have been using it for some time, this link may help to get started.  It is important that you understand the basics of the interface in order to view the information you wish to extract.
Magento Commerce includes Google Analytics code, so all you have to do is enable the functionality and enter your Google Analytics account ID in Magento.
This walk-through assumes that you have already created a Google Analytics account and that you selected 'E-commerce site' in your profile settings in Google:
magento_google_analytics2.jpg

Where to find your account ID within Google Analytics

The first step is locating your account ID in Google. You will first need to access your tracking code from within your Google Analytics account:
  1. Log in to Google Analytics at http://www.google.com/analytics
  2. From the Overview page, select your account - or the domain that you wish to get the account ID for.
  3. Select the profile from the accounts Overview page.
  4. From that profile’s Actions column, click Edit
  5. At the top right of the ‘Main Website Profile Information’ box, click Check Status
  6. You should see code towards the bottom of the page similar to the code below:
Copy your account ID from the tracking code.  It will resemble the format below.
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-10633591-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

Where to add your Google Account ID in Magento

  1. Login to your Magento Admin Area
  2. Navigate to System -> Configuration -> Google API
  3. Expand the “Google Analytics” row and you will see a screen similar to the one below. Enable Google Analytics and insert your Account ID into the box.
magento_google_analytics.jpg
Save the configuration and your account will be live.
Note: Magento has reported that there may be a bug in relation to Google Analytics. If you experience any difficulties with Google Analytics, please ask Argoworks to upload a patch via FTP to your Magento site at this location:

0 comments:

Post a Comment