cd path-to-uniappproject
npm install umtrack-wx --save
/src/app.wpy
import uma from 'umtrack-wx';
uma.init({
appKey: 'xxxx',
useOpenid: false,
autoGetOpenid: false,
debug: true
});
/pages/index.wpy
onLoad(){
my.uma.trackEvent('eventID',{pa:'fff'});
},