tt-post-point-sdk
v1.0.1
Published
``` npm install tt-post-point-sdk ```
Downloads
13
Readme
spm 方式埋点方法
1. 安装
npm install tt-post-point-sdk
2. 引入
const PostPoint = require('tt-post-point-sdk');
3. 使用
const postPointInstance = new PostPoint({
url: "https://your-endpoint.com/track",
userId: "user123",
});
postPointInstance.init();
postPointInstance
.ttPostPoint("spm_value", "event_type", [], [])
.then((res) => console.log(res))
.catch((err) => console.error(err));