Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.