cobub / razor

Cobub Razor - Open Source Mobile Analytics Solution
http://www.cobub.com
1.13k stars 431 forks source link

苹果版SDK统计的使用时长 #111

Closed qac2013 closed 9 years ago

qac2013 commented 10 years ago

请教个问题,安装最新版的cobub,跑了一段时间的数据,发现使用时长数据些问题:

总用户数安卓是苹果2.5倍多,不清楚那个机制引起的使用时长数据相差这么多? 0-3 3-10 30 苹果版 31(1.7%) 294(15.9%) 741(40%) 安卓版 176(9.4%) 381(20.4%) 7(0.4%)

qac2013 commented 10 years ago

分析日志文件,发现苹果上报数据时,duration值不是end_millis-start_millis的值,而是end_millis-启动时间 请确认是否该时间有问题,安卓是正常的

peter35 commented 10 years ago
activities = "\U5934\U6761";
appkey = 248ac42a3615c3df4af1f6b3cbfb5fb0;
duration = "67232.277036";
"end_millis" = "2014-01-02 16:30:44";
"session_id" = D5ADDE737DB9BBAA6F4554721A78CA1B;
"start_millis" = "2014-01-02 16:29:41";
version = "1.0.3.56";
peter35 commented 10 years ago

NSTimeInterval duration = (-[startDate timeIntervalSinceNow])*1000; duration 目前是程序开始到现在的时间

Android 和 iOS中数据包duration 表达的意思不一样!

cobub commented 9 years ago

fixed