@zjl-jiang/ap-sdk
v0.1.2
Published
Browser SDK for the Access Attribution System
Readme
@zjl-jiang/ap-sdk
Browser SDK for the access attribution platform.
Platform Release
Business teams do not need this source directory. Build and publish the package from this SDK directory:
npm run build
npm publish --access publicThe published package is consumed from npm as @zjl-jiang/ap-sdk.
Business Installation
npm install @zjl-jiang/ap-sdkThen import it normally:
import { attribution } from '@zjl-jiang/ap-sdk'
attribution.init({
appId: 'app_mall_web',
publicKey: 'pk_live_attr_xxx',
})The SDK posts to https://ap.zhongjuliang.com/api/collect by default. Pass
endpoint only when you need to override it for testing or private deployment.
Stay heartbeat is enabled by default every 30 seconds. Set
stayHeartbeatIntervalMs: 0 to disable heartbeat events while keeping final
STAY settlement events.
