Installing Google Analytics on your Magento Store

When it comes to website and user data one can never be given enough information and statistics. This is why Google’s tool Google Analytics is one of the strongest, most popular and robust services offered by the web giant – and a priority install for anyone who manages or runs websites.

Among other things, analytics enables the insight of important user data which can then be applied towards reaching overall business goals such as key metrics, conversions, action items and, most importantly, purchases/orders.

Analytics provides data on items such as overall website traffic, activity from the user about when they are on your site, when they visit, how the user arrived your site (search engines, social media, direct links, referrals, etc.) and how they choose to interact with the pages and content. Best of all – it’s free!  This analysis allows for a deeper in depth look into your overall ecommerce business.

Proper and accurate analytical reporting is truly the lifeblood of a website and in certain instances can be the difference between a successful site versus an unsuccessful one.

Granted there are technically several ways to install Google Analytics on your site. A more technical option is applying the code to the website files directly onto the server. Fortunately, this method isn’t necessary and installation may be achieved directly from the Magento admin panel. Installing analytics on your site isn’t a complex process and shouldn’t take more than a few minutes of your time. Follow the simple steps below and you’ll be up and running in no time.

The primary step is to link Google Analytics to your Magento store. This is simply a matter of copying and pasting the Google Analytics Account ID code into the admin panel of Magento. Follow these steps:



  1. Login to your Google Analytics account (or sign up for one with using a Gmail account)
  2. Navigate to Account Settings from the Analytics Admin panel
  3. Click the Admin button on top of the bar, and then click on Ecommerce Settings
  4. In Ecommerce Settings, enable Ecommerce set-up and turn on Enable Enhanced Ecommerce Reporting.  Then click on Submit.
  5. Locate the Google Analytics ID
  6. Copy the ID
  7. Login to your Magento admin panel
  8. Navigate to System -> Configuration -> Google API -> Google Analytics.
  9. Select Yes under the Enable dropdown
  10. Paste the ID
  11. Click Save configuration button




One important additional detail and note. As a recommended setting you will probably want to exclude your own visits to your website and ignore your own traffic to the site. For steps on how to create a Filter to exclude tracking a certain IP address see the documentation notes on the topic here.

That’s it – you’re all done!  Now your site can track and collect data from your Magento Store via Google Analytics.

Consequently, there is another useful tool for tracking and understanding how users are interacting with your site called Inspectlet. Installing it requires placing a few lines of JavaScript code into the backend of your website. Learn how Inspectlet and their API functions on their blog. Essentially, Inspectlet records what users are doing by creating “heat maps”. The install code will look like something similar to this:

<!-- Begin Inspectlet Embed Code -->
 <script type="text/javascript" id="inspectletjs">
 window.__insp = window.__insp || [];
 __insp.push(['wid', 1492461759]);
 (function() {
 function ldinsp(){if(typeof window.__inspld != "undefined") return; window.__inspld = 1; var insp = document.createElement('script'); insp.type = 'text/javascript'; insp.async = true; = "inspsync"; insp.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://'; var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(insp, x); };
 setTimeout(ldinsp, 500); document.readyState != "complete" ? (window.attachEvent ? window.attachEvent('onload', ldinsp) : window.addEventListener('load', ldinsp, false)) : ldinsp();
 <!-- End Inspectlet Embed Code -->

Happy tracking!


Remember, for assistance with your Magento store, and all your eCommerce business needs call Alpine at (847) 605-0788 or simply Contact us here.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *