Rails 中有哪些 A/B 对比测试资源?
有关 A/B 分割测试的一些信息:
- http://startuplessonslearned.blogspot.com/2008/09/one-line-split-test-or-how-to-ab-all.html
- http://www.37signals.com/svn/posts /1525-writing-decisions-headline-tests-on-the-highrise-signup-page
我可以在 Rails 应用程序中使用简单的 case
或 if 语句,但这会导致大量重复。 有没有宝石可以支持这一点? 有什么设计模式有帮助吗?
Some information on A/B split-testing:
- http://startuplessonslearned.blogspot.com/2008/09/one-line-split-test-or-how-to-ab-all.html
- http://www.37signals.com/svn/posts/1525-writing-decisions-headline-tests-on-the-highrise-signup-page
I could do this in a Rails app with a simple case
or if
statement in my views, but that gets to be a lot of repetition. Is there a gem to support this? Any design patterns that would help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我刚刚发布了 A/Bingo,一个 OSS Rails 插件来执行此操作。
您可以查看与七分钟腹肌的比较了解详细信息,但我认为这在很大程度上更容易使用。
I just released A/Bingo, an OSS Rails plugin to do this.
You can see the comparison with Seven Minute Abs for details, but I think it is largely more easy to use.
Vanity 值得一提。 一些 GA 集成、自定义指标、干净的代码。 Github 此处。
Vanity is worth a mention. Some GA integration, custom metrics, clean code. Github here.
你见过 7 Minute ABs,一个 Rails 的 A/B 测试插件吗?
Have you seen 7 Minute ABs, an A/B testing plugin for rails?
http://github.com/paulmars/seven_minute_abs/tree/master
在
ApplicationController
中:在您的视图中根据您想要的视图和所选选项渲染部分内容:
这样您就可以保证用户在整个站点的整个会话中获得相同的选项。 另外,您只需将该选项设置为空字符串即可返回默认部分。 您甚至可以在数组中放置一个空字符串,或重复条目来更改每个条目被选择的频率的权重。
您可以使用 Google 网站优化工具来确定哪个选项实现了最佳转化。 请查看其文档快速入门中的分步演练指南 - Website Optmizer 帮助。 其中包含您需要添加的 JavaScript 代码。
In
ApplicationController
:In your views render a partial based on the one you want and the option chosen:
That way you guarantee that the user gets the same option for the entire session, across the whole site. Plus you can go back to the default partial by just setting the option to an empty string. You could even put an empty string in the array, or duplicate entries to change the weighting of how often each one is chosen.
You can use Google Website Optimizer to figure out which option did the best conversion. Check out their step-by-step walkthrough in their documentation, Quick Start Guide - Website Optmizer Help. That has the bits of JavaScript you'll need to add.