mha

mta-h5-analysis

this is wechat-h5 data analysis js sdk from MTA platform

Showing:

Popularity

Downloads/wk

352

Maintenance

No Maintenance Data Available

Package

Dependencies

0

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

MTA Html5 上报

安装

npm install mta-h5-analysis --save

引入上报

import MtaH5 from 'mta-h5-analysis';

相关代码

// 初始化
MtaH5.init({
  "sid":'********', //必填,统计用的appid
  "cid":'********',, //如果开启自定义事件,此项目为必填,否则不填
  "autoReport":0,//是否开启自动上报(1:init完成则上报一次,0:使用pgv方法才上报)
  "senseHash":0, //hash锚点是否进入url统计
  "senseQuery":0, //url参数是否进入url统计
  "performanceMonitor":0,//是否开启性能监控
  "ignoreParams":[] //开启url参数上报时,可忽略部分参数拼接
});

// 页面上报
MtaH5.pgv();

// 自定义事件上报
MtaH5.clickStat("ico_search", {"query":"特斯拉"});

更多文档说明,参考官方文档

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial