sa-sdk-javascript
Advanced tools
Comparing version 1.8.14 to 1.9.1
{ | ||
"name": "sa-sdk-javascript", | ||
"version": "1.8.14", | ||
"version": "1.9.1", | ||
"description": "official sensorsdata javascript sdk", | ||
@@ -5,0 +5,0 @@ "main": "sensorsdata.min.js", |
@@ -5,3 +5,3 @@ # sa-sdk-javascript | ||
完整文档请[点击这里](http://www.sensorsdata.cn/manual/js_sdk.html),如有疑问请联系邮箱 shengyonggen@sensorsdata.cn,着急联系qq=522370351。 | ||
完整文档请[点击这里](http://www.sensorsdata.cn/manual/js_sdk.html),如有疑问请联系邮箱 shengyonggen@sensorsdata.cn。 | ||
@@ -8,0 +8,0 @@ 目录说明: |
@@ -87,7 +87,12 @@ /** | ||
}, | ||
callback_timeout: 1500, | ||
callback_timeout: 1000, | ||
is_track_device_id: false, | ||
use_app_track: false | ||
use_app_track: false, | ||
heatmap: { | ||
clickmap:'default', | ||
scroll_notice_map:'default' | ||
} | ||
}; | ||
@@ -106,2 +111,14 @@ | ||
} | ||
sd.para.heatmap_url = sd.para.heatmap_url || sd.para.sdk_url.replace(/[^\/]+\.min\.js/,'heatmap.min.js'); | ||
if(_.isObject(sd.para.heatmap)) { | ||
if(_.isEmptyObject(sd.para.heatmap)){ | ||
sd.para.heatmap = sd.para_default.heatmap; | ||
}else{ | ||
sd.para.heatmap = _.extend(sd.para_default.heatmap,sd.para.heatmap); | ||
} | ||
sd.para.heatmap.scroll_delay_time = sd.para.heatmap.scroll_delay_time || 4000; | ||
} | ||
// 优化配置 | ||
@@ -108,0 +125,0 @@ if(typeof sd.para.server_url === 'object' && sd.para.server_url.length){ |
@@ -1,1 +0,1 @@ | ||
var sensorsdata_js_sdk_latest_version = '1.8.14'; | ||
var sensorsdata_js_sdk_latest_version = '1.9.1'; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1442537
34
29792