PageSourceSearch

https://www.shoplazza.com/hubfs/hub_generated/template_assets/1/190357403201/1789876702234/template_sa.min.js

js shoplazza.com collected 2026-09-24 08:32:13 UTC 3,023 bytes, 2 lines download raw bytes

1!function($,window,document){if(void 0!==$){var _sa={sendType:"",serverUrl:"",distinct_id:"",trackParams:{},baseTrackParams:{$screen_height:Number(screen.height)||0,$screen_width:Number(screen.width)||0,$referrer:document.referrer,$referrer_host:document.referrer?document.referrer.split("/")[2]:"",$title:document.title,$url:()=>location.href,$url_path:location.pathname},customTrackParams:{},send:{beacon:function(data){navigator.sendBeacon(_sa.serverUrl,_sa.send.getSendData(data))},image:function(data){const img=document.createElement("img");img.width=1,img.height=1,img.src=_sa.send.getSendUrl(_sa.serverUrl,data)},getSendUrl:function(url,data){const base64Data=_sa.send.base64Encode(data),crc="crc="+_sa.send.hashCode(base64Data);return url+(-1!==url.indexOf("?")?"&":"?")+"data="+encodeURIComponent(base64Data)+"&ext="+encodeURIComponent(crc)},getSendData:function(data){const base64Data=_sa.send.base64Encode(data),crc="crc="+_sa.send.hashCode(base64Data);return"data="+encodeURIComponent(base64Data)+"&ext="+encodeURIComponent(crc)},base64Encode:function(data){return btoa(encodeURIComponent(data).replace(/%([0-9A-F]{2})/g,function(match,p1){return String.fromCharCode("0x"+p1)}))},hashCode:function(data){if("string"!=typeof data)return 0;var hash=0;if(0===data.length)return hash;for(var i=0;i<data.length;i++)hash=(hash<<5)-hash+data.charCodeAt(i),hash|=0;return hash}},getProperties:function(customParams){let mergedParams=Object.assign({},_sa.baseTrackParams,_sa.customTrackParams,customParams||{});for(const key in mergedParams){let val=mergedParams[key];val instanceof Function&&(val=val()),mergedParams[key]=val}return mergedParams},track:function(event,customParams){const data={distinct_id:_sa.distinct_id||(new Date).getTime().toString()+(400*Math.random().toFixed(2)+100).toString(),_track_id:Number(String(Math.random()).slice(2,5)+String(Math.random()).slice(2,4)+String((new Date).getTime()).slice(-4)),type:"track",event:event,properties:_sa.getProperties(customParams)};_sa.send[_sa.sendType](JSON.stringify(data))},setSendType:function(){let type="image";"object"==typeof navigator&&"function"==typeof navigator.sendBeacon&&(type="beacon"),_sa.sendType=type},registerPage:function(params){for(const key in params)_sa.customTrackParams[key]=params[key]},identify:function(val){_sa.distinct_id=val},init:function(){window.sa={init:function(config){config&&config.server_url?(_sa.setSendType(),_sa.serverUrl=config.server_url):console.error("神策SDK初始化失败:缺少server_url配置")},track:_sa.track,registerPage:_sa.registerPage,identify:_sa.identify,quick:_sa.quick}}};try{_sa.init(),window.sensorsDataAnalytic&&window.sensorsDataAnalytic.debug&&window.sensorsDataAnalytic.debug.status()}catch(e){console.error("神策SDK初始化过程中发生错误:",e)}}else console.error("神策SDK需要jQuery支持")}(jQuery,window,document);
2//# sourceURL=https://21507210.fs1.hubspotusercontent-na1.net/hubfs/21507210/hub_generated/template_assets/1/190357403201/1789876702234/template_sa.js

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.