|
@@ -35,7 +35,8 @@ var appInfo = { |
|
@@ -35,7 +35,8 @@ var appInfo = { |
35
|
fst: 0, //firstScreenTime
|
35
|
fst: 0, //firstScreenTime
|
36
|
// dt:document.title,//document title
|
36
|
// dt:document.title,//document title
|
37
|
sv: '', // YAS版本
|
37
|
sv: '', // YAS版本
|
38
|
- ab: cookies('ab_5') || ''
|
38
|
+ ab: cookies('ab_5') || '',
|
|
|
39
|
+ apf: window.location.search.indexOf('app_version=') >= 0 ? 'Y' : 'N'
|
39
|
};
|
40
|
};
|
40
|
|
41
|
|
41
|
//获取跟踪ID
|
42
|
//获取跟踪ID
|
|
@@ -379,6 +380,7 @@ _yas.sendMouseEvent = function(e, flag) { |
|
@@ -379,6 +380,7 @@ _yas.sendMouseEvent = function(e, flag) { |
379
|
y: pos.y,
|
380
|
y: pos.y,
|
380
|
et: e.type
|
381
|
et: e.type
|
381
|
};
|
382
|
};
|
|
|
383
|
+ mp.ts = (new Date()).getTime();
|
382
|
var info = util.merge(appInfo, custInfo);
|
384
|
var info = util.merge(appInfo, custInfo);
|
383
|
info = util.merge(info, browserInfo);
|
385
|
info = util.merge(info, browserInfo);
|
384
|
info = util.merge(info, mp);
|
386
|
info = util.merge(info, mp);
|
|
@@ -395,6 +397,7 @@ _yas.sendMouseEvent = function(e, flag) { |
|
@@ -395,6 +397,7 @@ _yas.sendMouseEvent = function(e, flag) { |
395
|
* 取值是false时, 记录cookie, 待进入新页面后通过send方法将cookie中的事件记录发送并清空。
|
397
|
* 取值是false时, 记录cookie, 待进入新页面后通过send方法将cookie中的事件记录发送并清空。
|
396
|
*/
|
398
|
*/
|
397
|
_yas.sendCustomInfo = function(json, flag) {
|
399
|
_yas.sendCustomInfo = function(json, flag) {
|
|
|
400
|
+ json.ts = (new Date()).getTime(); // 事件时间戳
|
398
|
if (!flag) {
|
401
|
if (!flag) {
|
399
|
var string = JSON.stringify(json);
|
402
|
var string = JSON.stringify(json);
|
400
|
cookies('_yascustjson', string, {
|
403
|
cookies('_yascustjson', string, {
|