Installing Google Analytics In Miva Merchant 5.5
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:
- Create a Google Analytics Account
- Copy the Google Analytics Code From Google
- Customize Google Analytics Code For Miva Merchant
- Insert Google Analytics Code in Miva Merchant
- Change Google Analytics Account Settings
- 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:
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”:
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:
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.
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:
Now you want to make 5 changes on the Goal Settings page:
- Name the Goal
- Set Goal Type to URL Destination
- Set Match Type to Exact Match
- Set Goal URL to /checkout/invoice.html
- Click “Yes, create a funnel for this goal”
Here is a screen shot to use as a visual aid:
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:
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
Step 2: Customer Login
Step 3: Customer Information
Step 4: Payment Information
Here is what the funnel should look like before you save changes:
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.
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.