tt-post-point-sdk

1.0.1 • Public • Published

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));

Readme

Keywords

none

Package Sidebar

Install

npm i tt-post-point-sdk

Weekly Downloads

3

Version

1.0.1

License

ISC

Unpacked Size

3.54 kB

Total Files

3

Last publish

Collaborators

  • housk_1995