@youngbeen/ums-tracking
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

ums-tracking

惠农tracking埋点日志基础支持

引用

import '@youngbeen/ums-tracking'

该基础支撑会在window下面创建一个全局的tracking方法

使用

window.tracking(id, params)

  • id - 埋点日志id,必选
  • params - 埋点附加参数,可选

示例:

window.tracking('TEST_TRACK_LOG') // 发送埋点日志
// 发送一个带附加业务参数的埋点日志
window.tracking('TEST_TRACK_LOG', {
  userName: 'youngbeen',
  mobileNo: '12311112222'
})

Readme

Keywords

Package Sidebar

Install

npm i @youngbeen/ums-tracking

Weekly Downloads

2

Version

0.1.4

License

ISC

Unpacked Size

10 kB

Total Files

9

Last publish

Collaborators

  • youngbeen