Search code examples
php.htaccessab-testingmultivariate-testing

How to setup split test?


I want to create a way to test different layouts on a page to see which get more conversions.

For example. If I have 2 versions of a page and I send 50% to page A and 50% to page B and see which one converts more sales.

So I am thinking maybe use .htaccess to rewrite half to page A and the other half to page B.

But how can I do that with .htaccess is there a way? do I need to use PHP instead to do this?

Also if there is a better way to do this, or any cautions I should be aware of, please let me know.


Solution

  • Lots of ways to deal with it on your own code. If however you're already using Google Analytics and don't care to use javascript for the test, spare yourself a lot of trouble and look at http://www.google.com/websiteoptimizer/index.html

    Update (Reconfine): Google website optimizer no longer exists, this has been replaced with "Google Analytics content experiments" https://developers.google.com/analytics/devguides/platform/experiments-overview