interactive-spm
v0.0.12
Published
**Interactive SPM**
Downloads
6
Readme
Interactive SPM
A wrapper to use both Tracker and Tracert
sample
import interactiveSpm from 'interactive-spm'
interactiveSpm.init({
server: "https://spm.server", // please set this
autoLogPv: false, // don't change this
autoLogPerf: true, // don't change this
eventType: "click",
spmAPos: "spmApos", // please set this
workspaceId: "workspaceId", // please set this
appId: "chameleon-test", // please set this
sessionIdKey: "tracert-session-key",
clue: {
pid: "pid"
} // if you want to use clue to log error, set to true
})
interactiveSpm.logPv()
interactiveSpm.trackWithVue(Vue)
interactiveSpm.trackUnhandledPromise()
interactiveSpm.click('event.name')
interactiveSpm.logError(new Error('error.name'))