简体   繁体   English

如何使用Vanity生成报告?

[英]How do I generate a report with Vanity?

Whenever I try to generate a report with Vanity, it creates an empty HTML file 每当我尝试使用Vanity生成报告时,它都会创建一个空的HTML文件

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

When viewing in the browser 在浏览器中查看时

Vanity's cached experiments are out of sync with those on the filesystem and/or those in the datastore. Vanity的缓存实验与文件系统和/或数据存储中的实验不同步。 Please restart your server and/or turn on collecting. 请重新启动服务器和/或打开收集功能。

I've already restarted the server several times, and ran through the the registration process several times. 我已经多次重启服务器,并多次完成了注册过程。

>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

I was able to load the experiment page and see both color options. 我能够加载实验页面并看到两种颜色选项。 I have the track! 我有track! code. 码。

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

I even see the values in Redis 我什至看到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"

I even added model User to the metric, because it claimed to look at existing historical data. 我什至将model User添加到该指标,因为它声称要查看现有的历史数据。

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

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

@chloe this was a bug and closed in a3cc4f7 . @chloe这是一个错误,已在a3cc4f7中关闭。 It's been merged into the master branch and will be in the upcoming 1.9.1 release. 它已合并到master分支中,并将在即将发布的1.9.1版本中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM