npm install tt-post-point-sdk
const PostPoint = require('tt-post-point-sdk');
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));