(function() { if (window.zhuge) return; window.zhuge = []; window.zhuge.methods = "_init identify track trackrevenue getdid getsid getkey setsuperproperty setuserproperties setwxproperties setplatform".split(" "); window.zhuge.factory = function(b) { return function() { var a = array.prototype.slice.call(arguments); a.unshift(b); window.zhuge.push(a); return window.zhuge; } }; for (var i = 0; i < window.zhuge.methods.length; i++) { var key = window.zhuge.methods[i]; window.zhuge[key] = window.zhuge.factory(key); } window.zhuge.load = function(b, x) { if (!document.getelementbyid("zhuge-js")) { var a = document.createelement("script"); var verdate = new date(); var verstr = verdate.getfullyear().tostring() + verdate.getmonth().tostring() + verdate.getdate().tostring(); a.type = "text/javascript"; a.id = "zhuge-js"; a.async = !0; a.src = 'https://datain.longfor.com/zhuge.js?v=' + verstr; a.onerror = function() { window.zhuge.identify = window.zhuge.track = function(ename, props, callback) { if(callback && object.prototype.tostring.call(callback) === '[object function]') { callback(); } else if (object.prototype.tostring.call(props) === '[object function]') { props(); } }; }; var c = document.getelementsbytagname("script")[0]; c.parentnode.insertbefore(a, c); window.zhuge._init(b, x) } }; window.zhuge.load('c9af6444e8b74cd894feefdfef579e28', { //配置应用的appkey superproperty: { //全局的事件属性(选填) '应用名称': '龙湖官网中文' }, adtrack: false,//广告监测开关,默认为false autotrack: true,//启用全埋点采集(选填,默认true) duration: false,//时长采集开关, 默认为false singlepage: false //是否是单页面应用(spa),启用autotrack后生效(选填,默认true) }); })();