Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2010-06-03 20:51:46
- snthr
- Member
- Registered: 2007-07-13
- Posts: 42
a/b testing
hi,
as part of an overhaul of an existing textpattern site for search engine optimisation purposes, i’m looking for the best way to set up textpattern for a/b testing. for example, i’d like to know how to set up the same article with two different titles (and a way to measure click-through rates for both, though google analytics could probably take care of that side of things). any plugins for this, or suggestions of best-practice ways of doing it?
thanks.
Offline
#2 2010-06-03 20:53:35
- snthr
- Member
- Registered: 2007-07-13
- Posts: 42
Re: a/b testing
i should add, i’m aware that i could probably do this through php, but i’m not a php person, so if anyone wants to suggest a php-based way of doing it, i’d love to hear that too.
Offline
Re: a/b testing
imagine you set title to “this is version 1 | this is version two”
Then use such code:
<txp:php>
$title=explode(" | ", $thisarticle['title']);
echo $title[rand(0,1)];
</txp:php>
Last edited by the_ghost (2010-06-04 07:49:02)
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
Re: a/b testing
google website optimizer supports A/B testing too, but I’ve never tried it…
TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX
Offline
Pages: 1