Thomas Lees, Solutions Engineer at RedEye, discusses Single-Page Applications and how they pose a challenge for A/B testing
Page load times are becoming increasingly important for conversion rate optimisation and search engine rankings, meaning companies are moving towards new website technologies. One of these technologies is Single-Page Applications (SPAs), which pose a sizeable challenge for A/B testing.
So what are SPAs? Well, with traditional websites, when you click a link you will be served a different page with a unique URL where you can visibly see that the new page is loading. In SPAs, all the content can be on the one page within a single URL, and loaded at once upon first visiting. When you click a link within an SPA, content that has already been loaded is effectively turned on or off within that same page, and is served instantly. For an example of a modern SPA, click here (www.mrsmithcasino.co.uk).
A/B Testing with SPAs
Due to this new technology, SPAs are causing problems for A/B testing tools. The tool’s code snippet will only load once and, as there is no URL change, will not reload when the visitor performs an action such as clicking a link. Although many of the tools are playing catch-up, leaders in the field have introduced a workable solution which allows experiments to be manually activated and called upon via API calls which, although messy and convoluted, does enable you to make them fully functional.
This renders all WYSIWYG tools useless as tool visual editors can’t illustrate the code. Also, when it comes to building variation code from scratch, developers will have to know the library or framework language. This is problematic for developers who didn’t build the website, but who work within a conversion rate optimisation team that are tasked with building the variation code. These teams will either have to learn the site’s new programming language or pass the variation implementations back to the development team that built the website.
For the moment, solution engineers from companies like RedEye have to be versatile and adapt to each client’s website, learning its native language while continuing to research and implement innovative ways to work with SPAs. Although many companies may not yet have the courage to move to SPAs, when they do we can only hope A/B testing tools will have caught up with greater integration, to work with SPAs seamlessly as if it were a traditional site.
Watch this space for developments on SPAs and A/B testing!