Like most things, I learned the first 10% by reading on the Internet (A/B testing is very much not the new hotness that was just discovered by software companies in 2008) and the next 90% by throwing stuff at the wall and taking notes on what sort of stuff tended to stick.