...
|
...
|
@@ -78,6 +78,7 @@ var _yas = function(initTime, version, tid, uid, geo, selector) { |
|
|
custInfo.ak = tid;
|
|
|
appInfo.sv = version;
|
|
|
custInfo.ud = uid ? uid : '';
|
|
|
custInfo.ts = (new Date()).getTime();
|
|
|
|
|
|
if (cookies('_yasgeo')) {
|
|
|
var geoInfo = cookies('_yasgeo').split(',');
|
...
|
...
|
@@ -380,7 +381,6 @@ _yas.sendMouseEvent = function(e, flag) { |
|
|
y: pos.y,
|
|
|
et: e.type
|
|
|
};
|
|
|
mp.ts = (new Date()).getTime();
|
|
|
var info = util.merge(appInfo, custInfo);
|
|
|
info = util.merge(info, browserInfo);
|
|
|
info = util.merge(info, mp);
|
...
|
...
|
@@ -397,7 +397,6 @@ _yas.sendMouseEvent = function(e, flag) { |
|
|
* 取值是false时, 记录cookie, 待进入新页面后通过send方法将cookie中的事件记录发送并清空。
|
|
|
*/
|
|
|
_yas.sendCustomInfo = function(json, flag) {
|
|
|
json.ts = (new Date()).getTime(); // 事件时间戳
|
|
|
if (!flag) {
|
|
|
var string = JSON.stringify(json);
|
|
|
cookies('_yascustjson', string, {
|
...
|
...
|
|