Socket
Socket
Sign inDemoInstall

asd-alipay-sdk

Package Overview
Dependencies
2
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    asd-alipay-sdk

This is the offical Alipay SDK for Analysys.


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

易观方舟 asd-alipay-sdk NPM version License GitHub release

安装

$ npm install asd-alipay-sdk --save 

微信小程序 SDK 基础说明

快速集成
引入sdk模块并初始化

import AnalysysAgent from "asd-alipay-sdk"

// 引入加密模块(非必须)
import AnalysysEncryption  from 'asd-alipay-sdk/dist/AnalysysAgent_encryption.min.js';
AnalysysAgent.encrypt = AnalysysEncryption;

//初始化
AnalysysAgent.init({
  appkey: '',
  uploadURL: ''
})
初始化参数说明
参数是否必须类型默认值说明
appkeystring-在网站获取的AppKey
uploadURLstring-自定义上传地址
debugModenumber00: 关闭调试模式;1 - 开启调试模式,数据不入库;2 - 开启调试模式,数据入库
autoProfilebooleantrue设置是否追踪新用户的首次属性
encryptTypenumber0设置是否对上传数据加密:0 - 对上传数据不加密(默认);1 - 对上传数据进行AES 128位ECB加密;2 对上传数据进行AES 128位CBC加密
allowTimeCheckbooleanfalse设置是否开启时间校准
maxDiffTimeIntervalnumber30设置最大时间校准分为:30s(默认) ,当设置的时间差值小于他,将不开启校准。否则将会进行时间校准。假如设置成为负值,将默认为 30s。
autoTrackbooleanfalse设置是否开启全埋点,开启全埋点将会上报所有绑定(支持tab、longtab、longpress)事件,并上报$user_click 事件,设置data-content为采集的 $element_content、data-type为采集的 $element_type、data-name为采集的$element_name、id为采集的$element_id。不设置采集不到。不支持系统方法包括生命周期事件的上报,如果要采集tabbar切换,务必在注册Page的时候注册OnTabItemTap方法,否则采集不到。
autoCompleteURLbooleantrue设置是否采集完整URL,true - 采集URL包括参数;false - 采集URL不包括参数
autoPageViewDurationbooleanfalse是否采集页面离开事件
sendDataTimeoutnumber10000上报数据超时时间

通过以上步骤您即可验证SDK是否已经集成成功,更多Api使用方法参考:易观方舟 alipay SDK 文档

注意 SDK 可能不完全向前兼容,请查看版本更新说明 Release及版本升级记录。如果有说明不兼容的话,需要升级易观方舟对应的版本。 请根据需要前往 Release 里下载对应的文件

版本升级记录

请参见 Release及版本升级记录

禁止一切基于易观方舟 alipay 开源 SDK 的所有商业活动!


NPM downloads

Keywords

FAQs

Last updated on 20 Oct 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc