Shopping Cart Reviews

What is a Split Test?

While this post isn’t meant as an introduction, I’ll cover it very briefly. A split test is where you show some people one version of a page and others another and measure which one produces the best results. It’s arguably the single most effective way to improve your conversion rate. It doesn’t matter what your customers say about your shopping cart (your friends will almost always so “oh it’s so easy to use”), and what your opinion is. What’s important is to measure what people actually do. Even the experts pick the best performing version incorrectly much of the time, which they will readily admit, so testing real performance is critical.

The Challenge of Split Testing Templates

Usually when people talk about testing, they are talking about testing a single landing page, or a page in your checkout. Technically they are easy to test. Where it gets tricky is when you want to test your product template in your shopping cart, or a page template in your CMS. In most systems, it’s very hard to create a second version of the template and test. So what’s the solution? That’s what this blog post is about.

How to Split Test a Template Based Site

We’ll talk about testing with Google Website Optimizer. It’s an excellent tool, widely used, and free. Win!

1. Log into Google Website Optimizer with a Google Account at https://www.google.com/analytics/siteopt.

2. Choose “Create a New Experiment”

3. You are given the choice between an A/B test and Multivariate test. Google Website Optimizer informs you that A/B Experiments are simple and Multivariate tests are robust. However, ignore the suggestions Google Website Optimizer makes, included the recommendation that you need at least 1,000 page views per week. We are abusing this tool to get it work the way we want so that isn’t relevant. That’s the first trick.

4. Next, we are at the “New Multivariate Experiment” page. Fill in the fields as follows:

“Experiment Name” – give the experiment a meaningful name. In my case, I’ll call it “Product Page Add to Cart Button”.

“Identify Your Test Page” – in this box, put in the URL of any page that’s using the template you want to test. In my case, I’m testing the product template, so I add any product page, it doesn’t matter which one. For example, you’d put in www.mystore.com/brand/red-widget.html. We are testing the template, not just this page. We just need to trick Google.

“Identify Your Conversion Page” – put in the conversion page, that is, the page that users will reach when they’ve achieved the goal you want to boost. For an ecommerce site, this is often the “thank you” page after completing the purchase. In this case I am testing the “add to cart” button, and the shop doesn’t have a huge amount of sales per day, so it would take a long time to know whether the button was improved or not. So instead, I’ll put the conversion page as the page you are shown after clicking the add to cart button. There’s all sorts of clever customizations you can do around tracking the conversion page, but they are beyond the scope of this post.

5. Next you are asked who will be installing it. For the purposes of this post I’ll assume it’s you. The process is pretty similar if it’s not you.

You’ll be shown a few snippets of JavaScript with instructions on how to put them in.

What you want to do is to put this in your template file. In this case, where I am talking about making a change to a product page, I’ll find the products template and put it in there. So to be clear, we are making the change to every product page, not just one. This is just what we want! Remember how on the last screen it asked us for one specific page? Don’t worry about that. It’ll work.

The instructions can be difficult to implement in some template systems. For example, “Paste the follow at the beginning of your test page’s source code”. What you ideally need to do is put the code directly after the <head> tag in your template (detailed instructions are in the Google Help site if you want to read more). With some shopping cart templates it’s hard to control the exact place you put the code – it could be the <head> section is in a generic template that controls the whole site. In that case, just put it as close to the top of the product template as possible. Even just after the <body> tag will work. While this isn’t officially supported, I’ve put the scripts in all sorts of odd places depending on the shopping cart or CMS, and never had a problem.

Page Sections

The next interesting section is the page sections.

This is where you define the section(s) you want to test. This is the crucial piece of code. Multivariate tests are designed to test different parts of the page simultaneously. However, unless you have a lot of traffic and a lot of sales, then multivariate is impractical. So you need to decide what the test is. This could be something very simple like my test where I’m just trying different “add to cart” buttons, all the way through to testing complete new layouts. I’ll cover how to do some of this trickier stuff at the end, and stick with the simple example for now.

Here’s what my code looks like:

I’ve named the snippet “CartButton”, and put the code for the current button inside the snippet. The name “CartButton” will show up in the Google Website Optimizer later, so make sure the name is obvious. To stress again, unless you have a lot of sales (at least 50+per day) I recommend testing only one thing at a time.

When you go into Website Optimizer, you’ll see it appear there.

What you do now is click the “Add new variation” and put in the code you want to test. In this case, I’m putting in another add to cart button. You can add as many variations as you want, but be warned again, the more variations you have the longer it will take to test. Unless you know what you are doing, first time around stick to one variation.

That’s it! You have created your test! Just go through the preview and launch and your test is live.

Check back next day to make sure it’s all working. You should be seeing conversions coming in and with time you’ll be able to tell which is the winning version.

How to Test Layout Changes

So you say “ok, that’s fine, I can swap out an image or whatever, but I want to try more advanced stuff”. No problem! It gets slightly trickier, but not too bad. Some tests you might want to try:

  • Changing the layout of the page
  • Changing a style e.g. making the headline more dominant
  • Testing the presence or absence of an item, for example, a testimonial, security seal, or similar

How do you do this? Let’s start with testing whether an item makes a difference by being there. This is pretty simple. Let’s say you have a testimonial section on your page:

<div id=”testimonials”>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur euismod adipiscing eleifend. In non justo velit, aliquam tempus tortor. Aenean mauris sem, faucibus nec venenatis ac, faucibus eu mauris.
</div>

Simply add a test section to the page, and add some CSS to turn it off.

<script>utmx_section(“testimonials”)</script>
<style type=”text/css”>
#testimonials
{display:none;}
</style>
</noscript>

Then when you create a page section variation in Website Optimizer, simply leave it blank. By not showing the CSS that turns it off, then it’s on.

How about making a headline more dominant? It’s basically the same as above. Instead of testing CSS to turn off a section, just use CSS to change the style.

Changing the page layout is a bit trickier. Ideally this would be done with an A/B test. However, that’s tricky to do with many shopping carts and content management systems without some major code hacking. The solution is to insert a great big chunk of CSS similar to the two examples above, but use that CSS to significantly override the main style sheet and replace it with the new test style. You may need to use the !important declaration at times if needed. If your layout is still done using tables, this might be so difficult as to be in practice impossible. So, sorry, you’re out of luck! Time to get your code up to scratch!

If you are doing advanced CSS tests, don’t forget to preview your tests across different browsers to make sure all users have a good experience.

There are some very easy to implement techniques that will help eCommerce merchants to avoid fraud. Following these techniques will save you time, money, aggravation and help you avoid developing a bad online reputation. Having been in the eCommerce space for over 12-years I have seen a wide spectrum of fraud on the Internet. Almost every case of fraud could have been avoided if the merchant had their payment gateway configured correctly. In most cases, the transactions are glaringly fraudulent; but the merchant is so thrilled to have a great order that they overlook the obvious signs and fill the order only to get burned. Here are my suggestions for avoiding online fraud.

Merchant Account Set Up
When you are going through the merchant account application process it is important to give the bankers realistic numbers. You will need to provide the bank with numbers such as estimated annual transaction volume, estimated monthly volume, and minimum and maximum transaction amounts. It has been my experience that merchants like to exaggerate these numbers think it will impress the bank. That is a mistake. Give the bank conservative numbers, especially if you are just starting out online. It will take a year before you are transacting with any volume. These numbers can easily be increased as needed. The bank uses these numbers to setup set up profiles for you in their fraud prevention systems. This is your first line of defense, the more accurate the numbers you provide, the more likely the bank can protect your account. Remember, the bank’s job is to help you with sales, not prevent them. They can only run things so tight or too many of your transactions will fail. The bank’s fraud prevention system is only one layer of defense. It is not your merchant bank’s job to watch every transaction for fraud, they will only pick up some of the transactions that are outside of your profile. That leaves plenty of room for fraud inside those parameters. Your merchant application is not a business plan. Don’t bloat the numbers; you will only be hurting yourself.

AuthCapture (bad) AuthOnly (Good)
There are two types of transactions you can run when receiving payment online: Authorize and Capture (AuthCapture) and Authorize Only (AuthOnly). You can greatly reduce your exposure to fraud if you run AuthOnly. I strongly recommend setting your transactions to AuthOnly. An AuthOnly transaction will require the merchant to review orders and market them for settlement if it passes their scrutiny. I know, cash flow, you need your money now and AuthOnly could mean that it will take another day before you have your money, and its so much work to mark transactions for settlement. Get over it! You can wait one more day for your money and it only takes one click to mark a transaction for settlement.

Merchants often have a false sense that the bank, the gateway or the ecommerce platform will protect them from fraud, and ultimately someone other then the merchant will be responsible for paying for the fraudulent activity. The merchant ultimately pays for fraud and has a duty to screen their transactions for fraud.

The merchant is responsible for scrutinizing their transactions and approving the ones that pass a simple test. Here is what to look for:

  1. Did the transaction pass the Address Verification System (AVS) check?
  2. Did the CVV code have a match?
  3. Are the shipping and billing addresses the same?
  4. Common sense check?

If the answer to any of the above questions is “no”, then the merchant must take a closer look at that particular order. If someone orders 12 vacuum cleaners, and wants them shipped to Pakistan, and the billing address is Jane Smith from Arkansas, the order stinks of fraud. This scenario has happens more than you would think. The merchant is so thrilled to have the big sale, they don’t even consider that it could be fraud. In the end, the merchant pays for the product, pays for the shipping, pays Jane Smith’s credit card back, and even gets to pay a charge back fee from the bank. Ouch! The merchant is left feeling like it was someone else’s fault. Shouldn’t the bank or payment gateway prevent that? The merchant is the last line of defense and needs to use common sense and scrutinize their transactions. If it looks fraudulent, make a customer service call to the cardholder and ask some simple questions. This will quickly confirm whether or not the transaction is fraudulent.

Set Your Minimum and Maximum Transaction Amounts
Most payment gateways will let you set a minimum and maximum transaction amount for all of your orders. Using these features can greatly reduce a merchant’s exposure to fraud. If you don’t sell anything for under $9.99 then set the amount to $9.98. Also set the ceiling just above your realistic highest order amount.

This simple adjustment will help avoid a common hacker technique known as “Phishing”. Fishing is when a thief uses your Website or payment gateway to test a database full of stolen credit card numbers. They will run a high volume of small transactions
( $0.25) to see if the credit cards are good, and if so, they can exploit them elsewhere. When a merchant sees they have 2,000 transactions for 25 cents each, they are victims of a phishing attack. The bank will often hold the merchant responsible for paying the per transaction fees on all of the transaction. This hassle and frustration can be avoided by setting the minimum transaction amount to something greater than zero, and preferably over $1.00. Having your transactions set to AuthOnly will prevent all of these little phishing transaction from settling. Waking up Monday morning to find that you have settle 3,000 fraudulent transactions over the weekend is not the way you want to start your week.

Merchants can greatly reduce their exposure to fraud by running AuthOnly transactions, setting minimum and maximum transaction amounts, and scrutinizing their transactions before capturing the funds. Most decent online payment solutions will have these basic fraud prevention features available.

As with when you are looking for a card payment system and fraud detection system, for those looking to get a new credit card, it’s important to compare cards to get the best rate possible.

About the Author: James Curley is the founder and CEO of Mountain Media, an eCommerce and online payment solutions provider.

Copyright 2011 PoppyWeb Pty Ltd

About us | Privacy Policy | Site Map | Write for us | Contact Us / Suggest a Cart