How to Install Google Analytics for Volusion Sites

Installing GA Tracking Reveals Valuable Ecommerce Metrics

Although there are many ecommerce hosting solutions out there, from a SEO and small business perspective, Volusion is a tough act to beat.  I’m a firm believer that a small business should focus on its core competency and only take on what’s absolutely necessary.   I think hosting an ecommerce web store falls into that outsourcing category. volusion-logoSpending most of my career in small business, I’ve learned you have enough hats to wear without trying to master the technical aspects of hosting and ecommerce.  What you need is something simple yet effective and Volusion falls into that category.
Joomla Open Source Software

Joomla Open Source Software

I’ll save my detailed review of Volusion for another time but suffice it to say it’s one of the best turnkey systems out there.  Joomla is also a great system but you will need either a Joomla expert or someone with advanced technical skill to install it.

Installing GA in Your Volusion Template

As a template-driven solution, Volusion only needs to be updated in the main template to track all your transactions, from cradle to grave.  Once installed in the main template page, Volusion will dynamically build your store pages, inserting the necessary Google Analytics tracking code that will capture the data. To begin:
  1. Log in as an admin to your Volusion store.
  2. Navigate to LiveEdit File Editor under the Design menu tab.
    LiveEdit File Editor in Volusion v5.0

    LiveEdit File Editor in Volusion v5.0

  3. Once in LiveEdit, you will see a set of “shortcuts” on the right.  Click on the first link underneath “Design Files” which is your live template your store is using.  This name will vary from store to store.
    Finding Your Volusion Template

    Finding Your Volusion Template

  4. Scroll to the bottom and insert the following code just before the </body> tag

    Remember to the sample GA Tracking code below, UA-xxxxxxx-x with your Google Analytics ID as well as the yourdomain.com to your own domain name!


<!--
google analytics code
-->

<script type="text/javascript">// <![CDATA[
var gaJsHost = (("https:" == document.location.protocol) ? " https://ssl." : "http://www.");
document.write("<" + "script type='text/javascript' src='" + gaJsHost + "google-analytics.com/ga.js'><" + "/script>");
// ]]></script>
<script type="text/javascript">// <![CDATA[
function v_ga_track(ga_account, trackDomainName, theDomainName) {
  var domainNameTracking = trackDomainName ? true : false;
  var pageTracker = _gat._getTracker(ga_account);
        pageTracker._setDomainName(".yourdomain.com");
  pageTracker._initData();

  if (domainNameTracking) {
    if (!theDomainName) {
      theDomainName = "Config_FullStoreURL".replace("https:","").replace("http:","");
      theDomainName = theDomainName.substring(2,theDomainName.length - 1);
    }
    pageTracker._setDomainName(theDomainName);
  }
  pageTracker._trackPageview();
  try {
    pageTracker._addTrans(Order[0], "", Order[2], Order[4], Order[5], Order[6], Order[7], Order[8]);
    for (var i=0; i < OrderDetails.length; i++)
      pageTracker._addItem(OrderDetails[i][0], OrderDetails[i][2], OrderDetails[i][3], OrderDetails[i][4], OrderDetails[i][5], OrderDetails[i][6]);
    pageTracker._trackTrans();
  }
  catch(e) {}
}

v_ga_track("UA-xxxxxxx-x");
// ]]></script>

<!--
google analytics code
-->
Unfortunately this code is not retroactive so you will only see metrics moving forward and not in the past. However, now that you’ve installed this code you’ll have access to the following:
  • Conversion Rate
  • Number of Transactions
  • Average Order Value
  • Number of Products Purchased
  • Revenue by Keyword
  • Conversion Rate by Keyword
  • Revenue by Product
  • Revenue by Source / Medium
  • Visits to Purchase
  • Days to Purchase
And that’s just the beginning!

Analyzing Your Volusion Data

By installing this code you can begin to understand your customers and how to enhance your SEO efforts (or, if you’re a SEO like me, I use this to refine pages or optimization efforts for greater margin products!).  Maybe you realize that you have a high conversion rate for a product you don’t consider a core item.  Or, perhaps your average sale is derived from 2 or more visits from the prospect before buying…how does that change some of your internet marketing efforts? With 5 minutes of effort, you can begin to increase your knowledge about your customers and where you may find some low hanging fruit.
Volusion Metrics Using Google Analytics

Volusion Metrics Using Google Analytics

Share and Enjoy:
  • email
  • Facebook
  • Twitter
  • StumbleUpon
  • Digg
  • del.icio.us
  • Google Buzz
  • Print

No related posts.

  • http://www.fialkoffconsulting.com Josh Fialkoff

    Hi,
    I am working with a client who uses Volusion and I just installed the advanced analytics script from this page: https://store.volusion.com/kb_results.asp?ID=450
    Here is the code:

    var gaJsHost = ((“https:” == document.location.protocol) ? ” https://ssl.” : “http://www.”);
    document.write(“”);

    function v_ga_track(ga_account, trackDomainName, theDomainName) {
    var domainNameTracking = trackDomainName ? true : false;
    var gapageTracker = _gat._getTracker(ga_account);
    gapageTracker._initData();

    if (domainNameTracking) {
    if (!theDomainName) {
    theDomainName = “Config_FullStoreURL”.replace(“https:”,”").replace(“http:”,”");
    theDomainName = theDomainName.substring(2,theDomainName.length – 1);
    }
    gapageTracker._setDomainName(theDomainName);
    }
    gapageTracker._trackPageview();
    try {
    if( typeof Order != ‘undefined’ )
    {
    gapageTracker._addTrans(Order[0], “”, Order[2], Order[4], Order[5], Order[6], Order[7], Order[8]);
    for (var i=0; i < OrderDetails.length; i++)
    gapageTracker._addItem(OrderDetails[i][0], OrderDetails[i][2], OrderDetails[i][3], OrderDetails[i][4], OrderDetails[i][5], OrderDetails[i][6]);
    gapageTracker._trackTrans();
    }
    }
    catch(e) {}
    }

    v_ga_track("UA-XXXXXX-X");

    I am trying to find out what extra information I can gain from having this more-advanced code on the site.

    Thanks,
    Josh

    • http://www.fialkoffconsulting.com Josh Fialkoff

      Hi,
      I am also wondering how to make user-friendly URLs for static pages. It looks like there’s a way to do this, but it is not immediately apparent to me.
      -Josh

  • Juan

    Hey man, awesome tutorial – i am glad to have found someone else that thinks the same way about getting SEO done on this volusion shopping cart. They are definitely still lacking a lot of stuff. I really want to set up the rel canonical you had on the earlier post on the separate pages generated by the same product. It carries over the same meta title and description.

  • Rob

    I am having a hard time getting any assistance from Volusion with setting up my analytics account to track my volusion revenue. My question for you is why do your instructions not include adding the javascript code to the Article ID 130 page?

    I appreciate any advice you can offer.

    Best,
    Rob D

    • eellsworth

      You can add the conversion portion there if you wish but just where it places the order variables. I can email you the exact code if you wish.