0

每当我尝试使用 Vanity 生成报告时,它都会创建一个空的 HTML 文件

>vanity report --output vanity.html
Vanity: loading experiments from ...
Vanity: loading metrics from ...
New report available in vanity.html

在浏览器中查看时

Vanity 的缓存实验与文件系统和/或数据存储中的实验不同步。请重新启动您的服务器和/或打开收集。

我已经多次重新启动服务器,并多次完成注册过程。

>rails server
Vanity: loading experiments from C:/.../experiments
Vanity: loading metrics from C:/.../experiments/metrics
[2014-03-14 04:53:34] INFO  WEBrick 1.3.1

我能够加载实验页面并查看两种颜色选项。我有track!代码。

  if @user.save(validate: false)
    track! :register # Vanity

我什至看到了 Redis 中的值

redis 127.0.0.1:6379> keys *
 1) "vanity:experiments:color_options:outcome"
 2) "vanity:experiments:color_options:created_at"
 3) "vanity:experiments:landing_page:alts:0:conversions"
 4) "vanity:metrics:register:last_update_at"
 5) "vanity:metrics:register:2014-03-14:value:0"
 6) "scores"
 7) "vanity:experiments:color_options:completed_at"
 8) "vanity:experiments:color_options:alts:0:conversions"
10) "vanity:experiments:color_options:alts:1:conversions"
11) "vanity:experiments:color_options:alts:0:participants"
14) "vanity:experiments:color_options:alts:1:converted"
15) "vanity:experiments:color_options:alts:1:participants"
16) "vanity:experiments:landing_page:created_at"

我什至添加model User了该指标,因为它声称要查看现有的历史数据。

metric "Registration" do
  description "Measures how many people signed up for our awesome service."
  model User
end

参考http://vanity.labnotes.org/

4

1 回答 1

1

@chloe 这是一个错误并在a3cc4f7中关闭。它已合并到 master 分支中,并将在即将发布的 1.9.1 版本中。

于 2014-03-22T15:03:40.897 回答