Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm wondering if anyone could offer advice on how to think about creating an A/B testing plugin for posts that:

A) lets me assign unique URLs for each variant post*1) and*

B) is customizable on the frontend (i.e. new-post.php).

There seems to be two ways I could go about doing this:

  1. The first way: Create three separate posts, use the Shrimptest plugin to test, and exclude two of the posts from single.php (This was basically the answer that Otto gave when I asked about it on Stackexchange. The problem with this solution, though, is that I would have to go into the files to edit the code every time I want to test a different batch of posts. And I can't figure out a way for it to meet requirement B.)

  2. The alternate way: Create custom fields in new-post.php that would give an editor the option to write in alternate headlines and upload different Facebook images and FB text. This is my preferred option right now since everything would be customizable from new-post.php. The problem is that I'm not sure how to meet requirement A (a unique URL for each variant I test). Is it even possible to create a custom field in new-post.php that assigns sub-URLs on top of the default URL?

Any tips or suggestions on any part of the problems I described would be great! Thanks in advance!


Note: 1) The reason I need requirement A (unique URLs for each variant) is because I ultimately want to measure shareability of my posts on social networks.

For example: If I launch a post with Headline A, FB picture B upon sharing, and FB text B upon sharing, I want the number of clicks on that A/B/B variation to be tracked. Thus I need to assign a unique URL to that variation.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

You could try our free MaxA/B plugin. It was made for split testing different URLs.

share|improve this answer
    
Hmm, I remember looking on it but passing because it seemed to work with pages, not posts. Or maybe I should do more research?Thanks! –  Linda Aug 24 '11 at 15:54
    
What job does your plugin do without the commercial parts? –  kaiser Aug 24 '11 at 15:54
    
Linda - That's correct, the MaxA/B plugin only works with pages, not posts. Sorry, I missed that detail. –  Dave Donaldson Aug 24 '11 at 15:59
    
Please disclose your affiliation when talking about your own products. Also it is good practice to explain at least in brief why something is a fitting solution to original question, rather just throw in a link. –  Rarst Aug 24 '11 at 16:09
1  
@Linda - Yes it's possible. With some minor tweaks MaxA/B could be made to work with posts as well as pages. At the top of the /includes/experiment-new.php file you'll see a call to get_pages(). If you change that to get pages and posts, you'd be on your way. –  Dave Donaldson Aug 24 '11 at 16:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.