有人对Play框架进行A/B测试有什么好的策略吗? [英] Anyone got any good strategies for A/B testing with the Play Framework?

查看:96
本文介绍了有人对Play框架进行A/B测试有什么好的策略吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对使用 A/B或拆分测试的好的策略感兴趣播放框架.

I'm interested in good strategies for A/B or split testing with the Play Framework.

显而易见的选择是使用Google网站优化工具,但是出于某些原因,我不希望这样做:

The obvious choice would be to use Google Website Optimizer, however I'd prefer not to for several reasons:

  • 仅允许您测试表示层中的内容
  • 难以基于收入(而不是诸如点击或转化之类的二进制事件)进行测试
  • 必须用Javascript代码弄乱模板
  • 测试必须是离散的,而我喜欢不断地测试新的变体

有什么想法吗?

推荐答案

如果您希望控制器决定使用哪个版本,则可以(至少在Scala中)通过在两个不同的模板之间进行选择来做到这一点,如下所示:

If you want the controller to decide which version to use, you can do this (in Scala at least) by selecting between two different templates, like this:

if (mode == "A")
  html.showA(product)
else
  html.showB(product)

在控制器中执行此操作的优点是,可以跟踪哪个用户收到了该页面的哪个版本,并因此在每次后续登录时向他显示相同的页面.

Doing this in the controller has the advantage of being able to track which user received what version of the page, and thus showing him the same page upon each subsequent log in.

忘了提一下,在这种情况下,您需要两个不同的模板showA.scala.htmlshowB.scala.html.

Forgot to mention you then need two different templates, showA.scala.html and showB.scala.html in this case.

这篇关于有人对Play框架进行A/B测试有什么好的策略吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆