每当我尝试用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/
发布于 2014-03-22 15:03:40
@克洛伊,这是一个窃听器,在a3cc4f7关闭。它已经合并到主分支中,并将出现在即将发布的1.9.1版本中。
https://stackoverflow.com/questions/22400335
复制相似问题