Showing
1 changed file
with
10 additions
and
1 deletions
@@ -36,6 +36,7 @@ var appInfo = { | @@ -36,6 +36,7 @@ var appInfo = { | ||
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 | + op: 'YB_PAGE_OPEN_L', | ||
39 | apf: window.location.search.indexOf('app_version=') >= 0 ? 'Y' : 'N' | 40 | apf: window.location.search.indexOf('app_version=') >= 0 ? 'Y' : 'N' |
40 | }; | 41 | }; |
41 | 42 | ||
@@ -92,6 +93,11 @@ var _yas = function(initTime, version, tid, uid, geo, selector) { | @@ -92,6 +93,11 @@ var _yas = function(initTime, version, tid, uid, geo, selector) { | ||
92 | custInfo.ud = uid ? uid : ''; | 93 | custInfo.ud = uid ? uid : ''; |
93 | custInfo.ts = (new Date()).getTime(); | 94 | custInfo.ts = (new Date()).getTime(); |
94 | 95 | ||
96 | + var channelid = window.qs.yh_channel || util.getChannel(); | ||
97 | + if (channelid) { | ||
98 | + appInfo.param = JSON.stringify({C_ID: channelid}); | ||
99 | + } | ||
100 | + | ||
95 | if (cookies('_yasgeo')) { | 101 | if (cookies('_yasgeo')) { |
96 | var geoInfo = cookies('_yasgeo').split(','); | 102 | var geoInfo = cookies('_yasgeo').split(','); |
97 | custInfo.la = geoInfo[0]; | 103 | custInfo.la = geoInfo[0]; |
@@ -103,7 +109,6 @@ var _yas = function(initTime, version, tid, uid, geo, selector) { | @@ -103,7 +109,6 @@ var _yas = function(initTime, version, tid, uid, geo, selector) { | ||
103 | }); | 109 | }); |
104 | } | 110 | } |
105 | 111 | ||
106 | - | ||
107 | var beginTime = new Date().getTime(); | 112 | var beginTime = new Date().getTime(); |
108 | var sendFlag = null; | 113 | var sendFlag = null; |
109 | var isOver3sSend = false; | 114 | var isOver3sSend = false; |
@@ -211,6 +216,10 @@ var _yas = function(initTime, version, tid, uid, geo, selector) { | @@ -211,6 +216,10 @@ var _yas = function(initTime, version, tid, uid, geo, selector) { | ||
211 | function send(callback) { | 216 | function send(callback) { |
212 | var info = util.merge(appInfo, custInfo); | 217 | var info = util.merge(appInfo, custInfo); |
213 | info = util.merge(info, browserInfo); | 218 | info = util.merge(info, browserInfo); |
219 | + var mktc = getMktc(); | ||
220 | + if (mktc) { | ||
221 | + info = util.merge(info, mktc); | ||
222 | + } | ||
214 | 223 | ||
215 | // 鼠标位置 | 224 | // 鼠标位置 |
216 | var mpJson = getMousePosition(); | 225 | var mpJson = getMousePosition(); |
-
Please register or login to post a comment