Rich-text Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Split Testing Wordpress Template Files Site Wide
duncanjonesnz 11-28-16
Split Testing Wordpress Template Files Site Wide
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
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
Re: Split Testing Wordpress Template Files Site Wide
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
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");
example:
$("#navbar").css("position","fixed");
Ryan
------------------------------------------------
The best solution is the simplest.
https://www.linkedin.com/in/ryan-camilleri
------------------------------------------------
The best solution is the simplest.
https://www.linkedin.com/in/ryan-camilleri
robertchan 11-29-16
Re: Split Testing Wordpress Template Files Site Wide
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
I agree with @RyanC, 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


