Setting Up Optimizely for WordPress

The launch of Optimizely X appears to be fairly new, I haven’t learned much about it. The old issue I used to have with Optimizely was that it couldn’t test PHP values, such two different gravity forms. It appears the Optimizely X will fix that, and you can install it with Composer. But I’m going to have to do a lot more research before I start using it because it’s much more technical than Optimizely Classic (which only let’s you run front-end tests).

I installed an A/B testing plugin called Nelio A/B testing that looks capable of doing most of the things I would want to test on the backend, but it’s throwing me some PHP errors currently, messing up the whole website. The co-founder is looking through the issue for now, but meanwhile I need to get a test running. It’s just a front-end test– so for time’s sake I’ll setup an Optimizely Classic experiment on our AdWords page.

  1. Sign up for an Optimizely account.
  2. Create a Classic project. Name it– think “Website – Platform/Language – ID”
  3. Create an experiment– think “Ad Campaign – ID – Product”
  4. Configure new experiment:
    1. Go to Settings > Implementation to get your javascript tag– looks like:<script src="https://cdn.optimizely.com/js/8888888888.js"></script>
    2. If you already have version 1.4.2 or later of jQuery on your site, select: 
    3. Go to the Settings > Advanced tab and under Results Filtering enter your IP addresse(s) as an expression– IP Expression Generator
    4. Paste that expression and save.
  5. Setup the new experiment, go to Overview, select your experiment, and select Editor in the sidebar that appears. This will load your experiment URL into a WYSIWYG editor.
  6. … to be continued after I deploy to production 🙂

Leave a Reply