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

查看:24
本文介绍了有没有人对 Play Framework 的 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 Framework 的 A/B 测试有什么好的策略?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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