Back

Installing Google Analytics In Miva Merchant 5.5

Read on to learn more...

By Miva | December 4, 2009
closeup of hands typing on a keyboard

Share

  

Want to read this blog offline?

No worries, download the PDF version now and enjoy your reading later...

Download PDF

Today you will learn how to implement Google Analytics for Miva Merchant 5.5 so that you get important data including e-commerce tracking, site search and a funnel of the standard checkout steps. Let’s start with an outline of the steps:

  1. Create a Google Analytics Account
  2. Copy the Google Analytics Code From Google
  3. Customize Google Analytics Code For Miva Merchant
  4. Insert Google Analytics Code in Miva Merchant
  5. Change Google Analytics Account Settings
  6. Create a Goal & Funnel

Step 1: Create a Google Analytics Account

The first step is to create a Google Analytics account and I recommend using your existing Google Account if you already have one; otherwise, you will be creating one as part of the Google Analytics sign up. Assuming you have a Google Analytics account already you can skip this step.

Step 2: Copy the Google Analytics Code From Google

Once you create an account you will be presented with the Google Analytics Code as shown below. All you need to do is copy your Google Analytics account number, UA-99999999-1, and paste in a text editor such as notepad. Here is a screen shot to show you what to look for:screenshot of  instructions for adding tracking for Google Analytics

Keep this page of Google Analytics open because you will be coming back to it in step 5.

Step 3: Customize Google Analytics Code For Miva Merchant

Next is to customize the Google Analytics code to track orders, site search and checkout steps. This is going to be really easy because you only need to change one line of the custom code below then copy & paste. Start by downloading the custom code here, open the file and locate the following line:

var pageTracker = _gat._getTracker("UA-99999999-1");

Replace “UA-99999999-1” with the number you copied in Step 2 above from your Google Analytics Account. Now copy all of this code so it can be pasted in the next step.

Step 4: Insert Google Analytics Code in Miva Merchant

Next you want to login to your Miva Merchant Admin so you can edit the Global Footer of your store. Once you login click on your store name and then Global Footer. In the example below the store name is “Book Store”:screenshot of a global footer in Miva Merchant

Most stores will have some code in the global footer; go to the very end of all the existing code and paste the code you copied in step 3. Then Click the Update button. At this point you are done with the edits necessary inside the Miva Merchant admin.

Step 5: Change Google Analytics Account Settings

Now you want to go back to the Google Analytics account page from Step 2 and click the “Save and Finish” button. Next click Edit on your Profile screen; here is a screen shot:screenshot of editing Google Analytics profile

Once you are on the Edit Profile screen there are five area’s you need to change.

  • Exclude URL Query Parameters
  • Enable E-Commerce
  • Enable Site Search
  • Add Query Parameter for Site Search
  • Strip Query Parameter for Site Search URL

A picture is worth a thousand words so click the image below for an enlarged screenshot of what you need to change.

screenshot of how to edit profile information on Google Analytics

When your Edit Profile screen mimics the above settings click Save Changes. Congratulations, you now have e-commerce and site search tracking setup for Google Analytics. Now you just need to setup a goal and funnel to track the checkout steps.

Step 6: Create a Goal & Funnel

Once you click Save Changes on the Edit Profile screen from step 5 scroll down the page and click Add Goal to start the Goal and Funnel creation as seen in the image below:screenshot of adding a goal to Google Analytics

Now you want to make 5 changes on the Goal Settings page:

  1. Name the Goal
  2. Set Goal Type to URL Destination
  3. Set Match Type to Exact Match
  4. Set Goal URL to /checkout/invoice.html
  5. Click “Yes, create a funnel for this goal”

Here is a screen shot to use as a visual aid:ga-goal-settings

Now you want to add each page of the checkout process as a step of the funnel; here is what the first step (the BASK page) should look like:

screenshot showing how to add a goal funnel step

Click Add Goal Funnel Step 4 times and fill in each step. Here is the copy & paste information for each step of the funnel:

Step 1: Shopping Basket
/checkout/basket.html

Step 2: Customer Login
/checkout/login.html

Step 3: Customer Information
/checkout/address.html

Step 4: Payment Information
/checkout/payment.html

Here is what the funnel should look like before you save changes:sample of a goal funnel in Google Analytics

Once your screen mimics the image above click Save Changes and you are done! Now reward yourself with a good book, cup of tea, coffee or anything else you find fun.

Closing Notes

Special thanks to Dan at Kemper Strategic for the base code that I modified slightly for this tutorial.

You will need to wait until the next day before you will have data for your new Google Analytics implementation.

The funnel is designed for the standard checkout steps I have seen on the majority of ecommerce sites using Miva Merchant 5.5

The above funnel will NOT work with a one page checkout; you will need to customize to fit your needs

This is not meant to be an end all, be all guide rather it is designed to help merchants get a jump start on tracking the most vital data for successful optimization.

Need Help? Miva Merchant offers Google Analytics implementation via our Monthly Maintenance plan; for more information contact sales at 858.490.2570.

 
Back to top

Author's Bio

Miva

Miva offers a flexible and adaptable ecommerce platform that evolves with businesses and allows them to drive sales, maximize average order value, cut overhead costs, and increase revenue. Miva has been helping businesses realize their ecommerce potential for over 20 years and empowering retail, wholesale, and direct-to-consumer sellers across all industries to transform their business through ecommerce.

More Posts Like This

Stay in the Loop

Sign up to receive the latest in ecommerce news, articles, whitepapers, and more.

OR CALL 800.608.MIVA

  • Facebook icon
  • Twitter icon
  • Instagram icon
  • LinkedIn icon