...
|
...
|
@@ -127,6 +127,15 @@ var _yas = function(initTime, version, tid, uid, geo, selector) { |
|
|
});
|
|
|
}
|
|
|
|
|
|
var reg = new RegExp("(^|&)mkt_code=([^&]*)(&|$)", "i");
|
|
|
var regString = window.location.search.substr(1).match(reg);
|
|
|
if (regString !== null) {
|
|
|
cookies('mkt_code', unescape(regString[2]), {
|
|
|
path: "/",
|
|
|
domain: yasDomain
|
|
|
});
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 用于统计用户点击的selector元素的序号
|
|
|
* 记录cookie, 待进入新页面后通过send方法将cookie中的鼠标记录发送并清空.
|
...
|
...
|
@@ -303,6 +312,14 @@ function getMouseEventPosition(e) { |
|
|
};
|
|
|
}
|
|
|
|
|
|
function getMkct() {
|
|
|
var mkct = cookies('mkt_code');
|
|
|
if (mkct) {
|
|
|
return mkct;
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
//超过5次发送自定义信息
|
|
|
var evTimes = 0;
|
|
|
|
...
|
...
|
@@ -389,6 +406,10 @@ _yas.sendCustomInfo = function(json, flag) { |
|
|
var info = util.merge(appInfo, custInfo);
|
|
|
info = util.merge(info, browserInfo);
|
|
|
info = util.merge(info, json);
|
|
|
var mkct = getMkct();
|
|
|
if (mkct) {
|
|
|
info = util.merge(info, mkct);
|
|
|
}
|
|
|
var param = util.genParam(info);
|
|
|
cross.imgSend(param, function () {});
|
|
|
}
|
...
|
...
|
|