Knowledge Base

How to Install Google Analytics E-commerce Tracking on Volusion

So your Volusion store is all set up and you want to measure the revenue and transactions that your website generates. To get this information, you will need to implement the analytics.js JavaScript snippet on your website so that it can send information to Google Analytics.

To break things down, there are two types of ecommerce data that you can send using analytics.js: transaction data and item data.

Transaction data will give you information about your customers’ transactions including:

  • Transaction ID
  • Total revenue
  • Total shipping cost
  • Total tax charged

Item data will give you information about the individual products that a customer purchased. This includes:

  • Transaction ID
  • Item name
  • Item code or SKU
  • Item category
  • Item price (per individual unit)
  • Quantity of items purchased

*Note: This guide covers the implementation of the Google Analytics ecommerce tracking for websites using Universal Analytics (analytics.js).

The Explanation

There are five steps and components associated with the Google Analytics ecommerce tracking code:

  • Load the Google Analytics Universal tracking code (gray snippet)
  • Load the ecommerce plugin (green snippet)
  • Capture transaction data (blue snippet)
  • Capture item data (purple snippet)
  • Send the data to Google Analytics (pink snippet)

When a customer successfully completes a purchase on your Volusion website, they are redirected to a “Thank You” page. If you enable ecommerce tracking and have the code on your “Thank You” page, the ecommerce data from the transaction will be sent to Google Analytics.

The Code

Below is the code required for ecommerce tracking for websites using Google’s Universal Analytics.

Before inserting this into website, substitute the red text for your own Google Analytics property tracking ID. Your property tracking ID can be found in the Admin panel of your Google Analytics under Property Settings.

*Note: if you already have Google Analytics installed on your Volusion website template, you do not need to include the gray snippet of code below.

  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
ga('create', 'UA-XXXXXXXX-X', 'auto');
  ga('send', 'pageview');
ga('require', 'ecommerce');
ga('ecommerce:addTransaction', {
  'id': Order[0], // Transaction ID. Required.
  'revenue': Order[2], // Grand Total.
  'shipping': Order[5], // Shipping.
  'tax': Order[4] // Tax.
for (var i=0; i < OrderDetails.length; i++) {
  ga('ecommerce:addItem', {
  'id': OrderDetails[i][0], // Transaction ID. Required.
  'name': OrderDetails[i][3], // Product name. Required.
  'sku': OrderDetails[i][2], // SKU/code.
  'price': OrderDetails[i][5], // Unit price.
  'quantity': OrderDetails[i][6] // Quantity.


The Step-by-Step

In Google Analytics:

    • Click on Admin
    • Under View, click Ecommerce Settings
      Google Analytics Ecommerce Tracking - Step 1


    • Under Enable Ecommerce, click Edit and set the status to On*
      Google Analytics Ecommerce Tracking - Step 2


  • Click the Submit button

* This tutorial does not cover Enhanced Ecommerce Settings. Leave this option off for now.

In your Volusion dashboard:

    • Hover over Design and click Site Content
      Volusion Ecommerce Tracking - Step 1
    • Click on Article ID 130 (OrderFinished.asp)
      Volusion Ecommerce Tracking - Step 2
    • Paste your ecommerce tracking code into the Article Body section of the OrderFinished.asp page
      Volusion Ecommerce Tracking - Step 3
  • Click Save

Now you’re in monitoring mode. For the next few days, check the revenue columns in your Google Analytics as well as the Conversions > Ecommerce section to make sure your website data is flowing through correctly. To make sure the numbers are accurate, cross reference the revenue, purchased products, and transaction data in Google Analytics with the order information found in the back end of your Volusion website.

And that’s that!

If you would like to see the original post, with comments, Click Here!

Reader Interactions


  1. Matthew says

    I posted in the original article, but thought it couldn’t hurt to post here as well. I’ve followed these instructions this morning, applying them to my volusion store, and throughout the day I can see traffic reported to Google Analytics, but the Ecommerce Conversion section reports 0 activity, even though I’ve placed some test sales myself. I can’t imagine what I could be doing wrong. I know this article is almost a year old (and the original is two years old) but would you still be willing to help people figure this out?

    I NEED to get GA ecommerce reports out of my volusion site! Thanks in advance for any help!

    • Matthew says

      Update: I figured it out!

      For anyone else who might be having my problem, in the Volusion template (a responsive template) I’m using, the GA code was at the bottom of the page, just above the tag. Therefore when the ‘Thank you page’ loaded, the ecommerce reporting script was process before it got to the main GA script. By cutting and pasting the main GA script to right below the tag, I am now seeing ecommerce in the Conversions section of my Google Analytics page.

  2. Matt Smith says

    Great article, however it is not tracking my revenue or order details. It is only tracking that there was a transaction. Do the order detail variables vary per volusion template?

    • Heather Hazen says

      Hello Matt,
      Thank you for your comment. I am not a Volusion developer, however I have set-up this code many times. The Volusion template is most likely not the issue. I would start by spot checking to be sure that a) you checked the Google Analytics Ecommerce Settings to Enable Ecommerce tracking (this will enable you to see Revenue in Analytics). And b) check that there are no errors with the code you pasted into Volusion. We would be happy to review the code for any errors.

Leave a Reply

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