
Security News
MCP Steering Committee Launches Official MCP Registry in Preview
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
asd-wechat-sdk
Advanced tools
$ npm install asd-wechat-sdk --save
import AnalysysAgent from "asd-wechat-sdk"
//初始化
AnalysysAgent.init({
appkey: '',
uploadURL: ''
})
参数 | 是否必须 | 类型 | 默认值 | 说明 |
---|---|---|---|---|
appkey | 是 | string | - | 在网站获取的AppKey |
uploadURL | 是 | string | - | 自定义上传地址 |
debugMode | 否 | number | 0 | 0: 关闭调试模式;1 - 开启调试模式,数据不入库;2 - 开启调试模式,数据入库 |
autoProfile | 否 | boolean | true | 设置是否追踪新用户的首次属性 |
encryptType | 否 | number | 0 | 设置是否对上传数据加密:0 - 对上传数据不加密(默认);1 - 对上传数据进行AES 128位ECB加密;2 对上传数据进行AES 128位CBC加密 |
allowTimeCheck | 否 | boolean | false | 设置是否开启时间校准 |
maxDiffTimeInterval | 否 | number | 30 | 设置最大时间校准分为:30s(默认) ,当设置的时间差值小于他,将不开启校准。否则将会进行时间校准。假如设置成为负值,将默认为 30s。 |
autoTrack | 否 | boolean | false | 设置是否开启全埋点,开启全埋点将会上报所有绑定(支持tab、longtab、longpress)事件,并上报$user_click 事件,设置data-content为采集的 $element_content、data-type为采集的 $element_type、data-name为采集的$element_name、id为采集的$element_id。不设置采集不到。不支持系统方法包括生命周期事件的上报,如果要采集tabbar切换,务必在注册Page的时候注册OnTabItemTap方法,否则采集不到。 |
autoCompleteURL | 否 | boolean | true | 设置是否采集完整URL,true - 采集URL包括参数;false - 采集URL不包括参数 |
autoPageViewDuration | 否 | boolean | false | 是否采集页面离开事件 |
通过以上步骤您即可验证SDK是否已经集成成功,更多Api使用方法参考:易观方舟 wechat SDK 文档
注意 SDK 可能不完全向前兼容,请查看版本更新说明 Release及版本升级记录。如果有说明不兼容的话,需要升级易观方舟对应的版本。 请根据需要前往 Release 里下载对应的文件
请参见 Release及版本升级记录
禁止一切基于易观方舟 wechat 开源 SDK 的所有商业活动!
FAQs
This is the offical wechat SDK for Analysys.
We found that asd-wechat-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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 MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.