关于 a/bingo 基础知识的问题(a/b 测试)

发布于 2024-08-13 18:30:32 字数 424 浏览 5 评论 0原文

从: http://www.bingocardcreator.com/abingo/usage

#A view example with a block passed to ab_test:
<% ab_test("call_to_action", %w{button1.jpg button2.jpg}) do |button| >
  <%= image_tag(button, :alt => "Call to action!" %>
<% end %>

做任何“选择”块中传递的内容必须是某种链接? a/bingo 如何知道不同的选择何时被转换?

from:
http://www.bingocardcreator.com/abingo/usage

#A view example with a block passed to ab_test:
<% ab_test("call_to_action", %w{button1.jpg button2.jpg}) do |button| >
  <%= image_tag(button, :alt => "Call to action!" %>
<% end %>

Does whatever "choice" that gets passed in the block have to be some sort of link? How does a/bingo know when different choices have been converted?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吐个泡泡 2024-08-20 18:30:32

Abingo 的工作方式是以一致的方式向不同的“身份”发出不同的选项,以便稍后可以将结果再次聚合在一起。有多种方法可以做到这一点,例如通过 IP 地址、通过 session_id 或通过注册帐户,所有这些方法都是有效的并且可以结合使用。实际上,特定身份将始终获得相同的随机选择选项。

文档中有关分配身份的示例是作为 ApplicationController 中的处理程序:

before_filter :set_abingo_identity

def set_abingo_identity
  if @user
    # Assign identity based on user
    Abingo.identity = @user.abingo_identity
  else
    # Assign identity for anonymous user
    session[:abingo_identity] ||= rand(10 ** 10).to_i.to_s
    Abingo.identity = session[:abingo_identity]
  end
end

当您想要根据使用的 A/B 选项来跟踪操作时,您需要在控制器中注入调用。另一个例子:

def show
  # Track conversion for active Abingo identity
  bingo!("show_info_page")
end

用户导航到该特定页面的机制完全是任意的,可以通过链接、表单提交、JavaScript 重定向或单击电子邮件。唯一重要的是 A/B 选项的显示和随后跟踪活动的控制器操作都分配了相同的 Abingo 标识。

The way Abingo works is to issue different options to different "identities" in a consistent manner so that the results can later be aggregated together again. There are several ways to do this, such as by IP address, by session_id, or by registered account, all of which are valid and can be used in conjunction. In effect, a particular identity will always get the same random selection of options.

An example from the documentation on assigning the identity is as a handler in ApplicationController:

before_filter :set_abingo_identity

def set_abingo_identity
  if @user
    # Assign identity based on user
    Abingo.identity = @user.abingo_identity
  else
    # Assign identity for anonymous user
    session[:abingo_identity] ||= rand(10 ** 10).to_i.to_s
    Abingo.identity = session[:abingo_identity]
  end
end

When you want to track action based on which A/B option was used, you need to inject calls in your controllers. Another example:

def show
  # Track conversion for active Abingo identity
  bingo!("show_info_page")
end

The mechanism by which the user navigates to that particular page is entirely arbitrary and can be by link, by form submission, by JavaScript redirect, or by clicking on an email. The only thing that matters is that the display of the A/B option and the later controller action that tracks the activity both have the same Abingo identity assigned.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文