Skip to content

Commit 7240826

Browse files
committed
$user_agent属性值不再预设置
1 parent 1072b8e commit 7240826

File tree

3 files changed

+104
-9
lines changed

3 files changed

+104
-9
lines changed

sensorsdata.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var ArrayProto = Array.prototype,
2626
slice = ArrayProto.slice,
2727
toString = ObjProto.toString,
2828
hasOwnProperty = ObjProto.hasOwnProperty,
29-
LIB_VERSION = '1.9.9',
29+
LIB_VERSION = '1.10.1',
3030
LIB_NAME = 'MiniProgram';
3131

3232
var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
@@ -787,8 +787,7 @@ _.setUtm = function (para, prop) {
787787
_.info = {
788788
properties: {
789789
$lib: LIB_NAME,
790-
$lib_version: String(LIB_VERSION),
791-
$user_agent: 'SensorsAnalytics MP SDK'
790+
$lib_version: String(LIB_VERSION)
792791
},
793792
getSystem: function () {
794793
var e = this.properties;
@@ -1124,10 +1123,9 @@ sa.init = function (obj) {
11241123
};
11251124

11261125
sa.getPresetProperties = function () {
1127-
if (_.info && _.info.properties && _.info.properties.$lib && _.info.properties.$user_agent) {
1126+
if (_.info && _.info.properties && _.info.properties.$lib) {
11281127
var obj = _.extend({ $url_path: _.getCurrentPath() }, _.info.properties, sa.store.getProps());
11291128
delete obj.$lib;
1130-
delete obj.$user_agent;
11311129
return obj;
11321130
} else {
11331131
return {};
@@ -1316,7 +1314,6 @@ if(sa.para.autoTrack !== false){
13161314
};
13171315

13181316
function appShow(para) {
1319-
// console.log('app_show', JSON.stringify(arguments));
13201317
var prop = {};
13211318

13221319
mpshow_time = (new Date()).getTime();

0 commit comments

Comments
 (0)