
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
bxs-lib-weapp-analytics
Advanced tools
因为小程序中无法使用dom进行埋点的记录,本项目使用纯ajax请求的方式实现,api调用基本同lib-analytics一致
npm install bxs-lib-weapp-analytics
import * as WeiyiStatSDK from 'bxs-lib-weapp-analytics'
WeiyiStatSDK.init(options)
在小程序后台 开发-> 开发设置-> request合法域名 中添加埋点url地址
wy-analysis.cn-hangzhou.log.aliyuncs.com
。目前测试环境和线上环境使用的域名是同一个,所以只要配置一个。
init({
pageId: '',
isProduct: true,
projectInfo: {}
})
submit('eId', {
mydata: 'mydata'
})
onHide()
onLoad()
onUnload()
以上三个方法分别对应了小程序 同名页面事件,如需记录可调用
由于埋点接口默认约定使用 mc,u来记录用户的属性,这些属性已经按照默认约定写死在cookie的固定字段中,因为小程序中默认无法通过接口设置cookie,所以本项目提供了两个接口来写mc和u,具体含义请联系相关开发人员
setU(u:String)
setU('xxxxxx')
setMC(mc:String)
setMC('xxxxxx')
FAQs
bxs 小程序埋
We found that bxs-lib-weapp-analytics demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.