Rich-text Reply

Split Testing Wordpress Template Files Site Wide

duncanjonesnz 11-28-16

Split Testing Wordpress Template Files Site Wide

Hi There,

 

Just wondering how to split test a Wordpress template file using Optimizely. For example I would like to test using sticky navigation across a whole website (not just split testing its effect on one page). I could create 2x header.php files one with static nav and one with sticky nav but just wondering on the logistics to test this effect.

 

One thought I had would be to split test them on the homepage:

  • homepage.com
  • homepage.com/?var=stick

And then trigger the header2.php template if var=stick exists and set a cookie to make it apply sitewide and if they come back to the site.

 

Same question would apply for split testing a product page template across an entrie eCom site not just on the one product.

 

Thanks in advance for any insights you have.

 

 

Thanks,

 - Duncan

RyanC 11-29-16
 

Re: Split Testing Wordpress Template Files Site Wide

I think it would be much simpler implementation if you include custom javascript, this way the user will not experience a redirect from homepage.com to homepage.com/?var=stick.

example:
$("#navbar").css("position","fixed");
Ryan
------------------------------------------------
The best solution is the simplest.

https://www.linkedin.com/in/ryan-camilleri
http://midnightknights.com
Experimentation Hero
robertchan 11-29-16
 

Re: Split Testing Wordpress Template Files Site Wide

I agree with @ryn004, use custom JS. You can also have things apply sitewide by using the URL targeting feature that comes with Optimizely and doing a substring match of your URL. This way, you'd just have an A/B test (2 variants). One variant would be the control while the other would have the new menu.
Robert Chan

Experimentation Hero