
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.