(function(para) { var p = para.sdk_url, n = para.name, w = window, d = document, s = 'script',x = null,y = null; w['sensorsdataanalytic201505'] = n; w[n] = w[n] || function(a) {return function() {(w[n]._q = w[n]._q || []).push([a, arguments]);}}; var ifs = ['track','quick','register','registerpage','registeronce','clearallregister','tracksignup', 'trackabtest', 'setprofile','setonceprofile','appendprofile', 'incrementprofile', 'deleteprofile', 'unsetprofile', 'identify','login','logout','tracklink','clearallregister']; for (var i = 0; i < ifs.length; i++) { w[n][ifs[i]] = w[n].call(null, ifs[i]); } if (!w[n]._t) { x = d.createelement(s), y = d.getelementsbytagname(s)[0]; x.async = 1; x.src = p; y.parentnode.insertbefore(x, y); w[n].para = para; } })({ sdk_url: bdtracesdk, name: 'sa', server_url:bdtraceservice, // 需要页面点击事件全埋点时,才会配置web_url和heatmap这两个属性 web_url:bdtraceservice, heatmap: { istracklink: false, heatmap:{loadtimeout: 3000}, collect_url: function(){ return true; } } }); sa.quick('autotrack'); //需要用默认的方式采集页面访问信息时才加入此行 $(document).ready(function () { $(".quit").on('click',function(){ if(!component) return; if(component.logined==false) return; try{ if(sa && sa.setprofile){ sa.setprofile({id:0,cp:0}); } } catch(e){ console.error(e); } }); });