6 Things I Wish I Knew Before Using Optimizely
Posted by tallen1985
Diving into Conversion Rate Optimization (CRO) for the first time can be a challenge. You are faced with a whole armoury of new tools, each containing a huge variety of features. Optimizely is one of those tools you will quickly encounter and through this post I’m going to cover 6 features I wish I had known from day one that have helped improve test performance/debugging and the ability to track results accurately.
1. You don’t have to use the editor
The editor within Optimizely is a useful tool if you don’t have much experience working with code. The editor
should be used for making simple visual changes, such as changing an image, adjusting copy or making minor layout changes.
If you are looking to make changes that change the behaviour of the page rather than just straightforward visual changes, then the editor can become troublesome. In this case you should use the “Edit Code” feature at the foot of the editor.
For any large-scale changes to the site, such as completely redesigning the page, Optimizely should be used for traffic allocation and not editing pages. To do this:
1. Build a new version of the page outside of Optimizely
2. Upload the variation page to your site.
Important: Ensure that the variation page is noindexed.
We now have two variations of our page:
www.myhomepage.com & www.myhomepage.com/variation1
3. Select the variation drop down menu and click Redirect to a new page

4. Enter the variation URL, apply the settings and save the experiment. You can now use Optimizely as an A/B test management tool to allocate traffic, exclude traffic/device types, and gather further test data.

If you do use the editor be aware of excess code
One problem to be aware of here is that each time you move or change an element Optimizely adds a new line of code. The variation code below actually repositions the h2 title four times.

Instead when using the editor we should make sure that we strip out any excess code. If you move and save a page element multiple times, open the <edit code> tab at the foot of the page and delete any excess code. For example, the following positions my h2 title in exactly the same position as before with three fewer lines of code. Over the course of multiple changes, this excess code can result in an increase of load time for Optimizely.

2. Enabling analytics tracking
Turning on analytics tracking seems obvious, right? In fact, why would we even need to turn it on in the first place, surely it would be defaulted to on?
Optimizely currently sets analytics tracking to the default option of off. As a result if you don’t manually change the setting nothing will be getting reporting into your analytics platform of choice.
To turn on analytics tracking, simply open the settings in the top right corner from within the editor mode and select Analytics Integration.

Turn on the relevant analytics tracking. If you are using Google Analytics, then at this point you should assign a vacant custom variable slot (for Classic Analytics) or a vacant custom dimension (Universal Analytics) to the experiment.

Once the test is live, wait for a while (up to 24 hours), then check to be sure the data is reporting correctly within the custom segments.
3. Test your variations in a live environment
Before you set your test live, it’s important that you test the new variation to ensure everything works as expected. To do this we need to see the test in a live environment while ensuring no customers see the test versions yet. I’ve suggested a couple of ways to do this below:
Query parameter targeting
Query parameter tracking is available on all accounts and is our preferred method for sharing live versions with clients, mainly because once set up, it is as simple as sharing a URL.
1. Click the audiences icon at the top of the page

2. Select create a new audience
3. Drag Query Parameters from the possible conditions and enter parameters of your choice.

4. Click Apply and save the experiment.
5. To view the experiment visit the test URL with query parameters added. In the above example the URL would be:
http://www.distilled.net?test=variation
Cookie targeting
1. Open the browser and create a bookmark on any page
2. Edit the bookmark and change both properties to:
a) Name: Set A Test Cookie
b)URL: The following Javascript code:
<em>javascript:(function(){ var hostname = window.location.hostname; var parts = hostname.split("."); var publicSuffix = hostname; var last = parts[parts.length - 1]; var expireDate = new Date(); expireDate.setDate(expireDate.getDate() + 7); var TOP_LEVEL_DOMAINS = ["com", "local", "net", "org", "xxx", "edu", "es", "gov", "biz", "info", "fr", "gr", "nl", "ca", "de", "kr", "it", "me", "ly", "tv", "mx", "cn", "jp", "il", "in", "iq"]; var SPECIAL_DOMAINS = ["jp", "uk", "au"]; if(parts.length > 2 && SPECIAL_DOMAINS.indexOf(last) != -1){ publicSuffix = parts[parts.length - 3] + "."+ parts[parts.length - 2] + "."+ last} else if(parts.length > 1 && TOP_LEVEL_DOMAINS.indexOf(last) != -1) {publicSuffix = parts[parts.length - 2] + "."+ last} document.cookie = "optly_"+publicSuffix.split(".")[0]+"_test=true; domain=."+publicSuffix+"; path=/; expires="+expireDate.toGMTString()+";"; })();</em>
You should end up with the following:

3. Open the page where you want to place the cookie and click the bookmark
4. The cookie will now be set on the domain you are browsing and will looking something like: ‘optly_YOURDOMAINNAME_test=true’
Next we need to target our experiment to only allow visitors who have the cookie set to see test variations.
5. Click the audiences icon at the top of the page

6. Select create a new audience
7. Drag Cookie into the Conditions and change the name to optly_YOURDOMAINNAME_test=true

8. Click Apply and save the experiment.
Source:
https://help.optimizely.com/hc/en-us/articles/200293784-Setting-a-test-cookie-for-your-site
IP address targeting (only available on Enterprise accounts)
Using IP address targeting is useful when you are looking to test variations in house and on a variety of different devices and browsers.
1. Click the audiences icon at the top of the page

2. Select create a new audience
3. Drag IP Address from the possible conditions and enter the IP address being used. (Not sure of your IP address then head to
http://whatismyipaddress.com/)

4. Click Apply and Save the experiment.
4. Force variations using parameters when debugging pages
There will be times, particular when testing new variations, that there will be the need to view a specific variation. Obviously this can be an issue if your browser has already been bucketed into an alternative variation. Optimizely overcomes this by allowing you to force the variation you wish to view, simply using query parameters.
The query parameter is structured in the following way: optimizely_x
EXPRIMENTID=VARIATIONINDEX
1. The
EXPERIMENTID can be found in the browser URL

2.
VARIATIONINDEX is the variation you want to run, 0 is for the original, 1 is variation #1, 2 is variation #2 etc.
3. Using the above example to force a variation, we would use the following URLstructure to display variation 1 of our experiment:
http://www.yourwebsite.com/?optimizely_x1845540742=1
5. Don’t change the traffic allocation sliders
Once a test is live it is important not change the amount of traffic allocated to each variation. Doing so can massively affect test results, as one version would potentially begin to receive more return visitors who in turn have a much higher chance of converting.
My colleague Tom Capper discussed further the
do’s and don’ts of statistical significance earlier this year where he explained,
“At the start of your test, you decide to play it safe and set your traffic allocation to 90/10. After a time, it seems the variation is non-disastrous, and you decide to move the slider to 50/50. But return visitors are still always assigned their original group, so now you have a situation where the original version has a larger proportion of return visitors, who are far more likely to convert.”
To summarize, if you do need to adjust the amount of traffic allocated to each test variation, you should look to restart the test to have complete confidence that the data you receive is accurate.
6. Use segmentation to generate better analysis
Okay I understand this one isn’t strictly about Optimizely, but it is certainly worth keeping in mind, particularly earlier on in the CRO process when producing hypothesis around device type.
Conversion rates can vary greatly, particularly when we start segmenting data by locations, browsers, medium, return visits vs new visits, just to name a few. However, by using segmentation we can unearth opportunities that we may have previously overlooked, allowing us to generate new hypotheses for future experiments.
Example
You have been running a test for a month and unfortunately the results are inconclusive. The test version of the page didn’t perform any better or worse than the original. Overall the test results look like the following:
|
Page Version |
Visitors |
Transactions |
Conversion Rate |
| Original | 41781 | 1196 | 2.86% |
| Variation | 42355 | 1225 | 2.89% |
In this case the test variation overall has only performed
1% better than the original with a significance of 60%. With these results this test variation certainly wouldn’t be getting rolled out any time soon.
However when these results are segmented by
device they tell a very different story:

Drilling into the
desktop results we actually find that the test variation saw a 10% increase in conversions over the original with 97% significance. Yet those using a tablet were converting way below the original, thus driving down the overall conversion rates we were seeing in the first table.
Ultimately with this data we would be able to generate a new hypothesis of “we believe the variation will increase conversion rate for users on a desktop”. We would then re-run the test to desktop only users to verify the previous data and the new hypothesis.
Using segmented data here could also potentially help the experiment reach significance at a much faster rate as
explained in this video from Opticon 2014.
Should the new test be successful and achieve significance we would serve users on the desktops the new variation, whilst those on mobile and tablets continue to be displayed the original site.
Key takeaways
- Always turn on Google Analytics tracking (and then double check it is turned on).
- If you plan to make behavioural changes to a page use the Javascript editor rather than the drag and drop feature
- Use IP address targeting for device testing and query parameters to share a live test with clients.
- If you need to change the traffic allocation to test variations you should restart the test.
- Be aware that test performance can vary greatly based on device.
What problems and solutions have you come across when creating CRO experiments with Optimizely? What pieces of information do you wish you had known 6 months ago?
Sign up for The Moz Top 10, a semimonthly mailer updating you on the top ten hottest pieces of SEO news, tips, and rad links uncovered by the Moz team. Think of it as your exclusive digest of stuff you don’t have time to hunt down but want to read!
SearchCap: Bing Xiaolce, Google Sitelinks Search & EU-Google Deal Problems
Below is what happened in search today, as reported on Search Engine Land and from other places across the web. From Search Engine Land: Bing Launches Xiaolce Chinese Chatbot With Cortana Smarts For Windows Phone After taking its Windows Phone 8.1 with…
Bing Launches Xiaolce Chinese Chatbot With Cortana Smarts For Windows Phone
After taking its Windows Phone 8.1 with Cortana to China last month, Bing announced today the launch of XiaoIce (“little ice”), a Chinese-speaking social assistant chatbot for Windows Phone users. According to the announcement on Bing’s search blog, XiaoIce’s technology is…
Please visit Search Engine Land for the full article.
YouTube Keyword Tool Goes Missing
Google replaced YouTube’s keyword tool with Display Planner’s AdWords video keyword suggestions on September 1, requiring users to access an AdWords account.
Baidu Building Powerful Computer Cluster
Reps for the search engine reportedly say more computing power is required as search queries shift from text to voice and image.
Is a Proposed Twitter Algorithm the Death of “Real Time” on the Social Platform?
CFO Anthony Noto recently said Twitter could be getting a new algorithm, but the question is: Will the new feed improve or harm the Twitter experience?
Callouts for AdWords Offer More Space for Advertisers
The new feature gives marketers more space to promote their products and separate themselves from competitors.
Hyperlapse – A New Tool in Your Local Content Toolbox
We live in amazing times. And there is nothing more amazing to me than a technical breakthrough like Hyperlapse, the time lapse iPhone app from the Instagram folks. The app does two things – it provides sophisticated image stabilization even when hand held and it allows you to choose the speed to the time lapse – and it […]
The Power of the Pencil
Ah, the digital world. It’s a blessing and a curse. Every day, new technology emerges from Silicon Valley, 15 year old kids’ basements, and Fortune 500 companies. And while these technologies can certainly take our work to new heights, I’m here to advocate that we use them in tandem with a very simple, very powerful […]
Google Search Site In SERPS Moved Up & May Jump Results To Your Site
Google announced this morning that they have made changes to the search box you see within the Google search results under a search results snippet. There are three changes:
(1) The box is now above the sitelinks of the search result…
Google Modifies Domain Clustering Rankings?
A WebmasterWorld thread has some savvy webmasters and SEOs asking if Google has changed how they handle the domain clustering in the search results.
Domain clustering is when Google will determine if they want to show one or more search results on a s…
When Does Google Treat Your 503 Errors As 404s & Remove Them?
We all know that Google tells us to serve a 503 error code when your server and web site is having temporary issues. Like a period of time where the server is getting way too much traffic for it to handle…
Bing’s Fun Image Widget Tool Leads To Getty Images Copyright Lawsuit
Remember the Bing Image Widget Tool where you can take a query and embed it on your site, and Bing will display images matches the query? Fun tool right…
Video Recap of Weekly Search Buzz :: September 5, 2014
This past week at the Search Engine Roundtable, I do my monthly Google Webmaster Report. I also report on the Google Knowledge Vault…
Search In Pics: Google Gumball Machine, Google Bike & Server Rack 1,000
In this week’s Search In Pictures, here are the latest images culled from the web, showing what people eat at the search engine companies, how they play, who they meet, where they speak, what toys they have, and more. Google+ Sponsors Maraton CDMX 2015: Source: Google+ Google Server Rack…
Please visit Search Engine Land for the full article.
4 Things Your Competitors Are Doing This Q4 to Crush You on Google
Q4 is the ultimate game. There is no halftime show, but all the big teams are playing, and everyone is coming to the game.
Use Holiday Search Data To Prep Your SEM Campaigns For The Upcoming Season
When are people searching for and when are people searching on Thanksgiving, Black Friday, and Cyber Monday?
The post Use Holiday Search Data To Prep Your SEM Campaigns For The Upcoming Season appeared first on Search Engine Land.
Please visit Searc…
Latest Google Product Listing Ads Test: Segment By Brand
Google has been running several experiments on the way it displays product listing ads (PLAs) in the search results. We’ve seen ads grouped in pricing buckets, PLAs showing in knowledge panels, and now, PLAs segmented by brand. While researching Chromebooks, Samuel Edwards at Tenthwave…
Please visit Search Engine Land for the full article.
How To: Tracking your SEO using Google Analytics
At Yoast, we’re known for giving you any number of useful tips to improve your site’s SEO. However, how do you know whether those tips actually working for you? There are a number of tools out there that can help you track your SEO, but most of them will actually cost you money. And in the…
This post first appeared on Yoast. Whoopity Doo!