1.2.9 • Published 11 months ago

buried-log v1.2.9

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

Buried Log

BuriedLog.js 是一个用于 Web 前端应用埋点收集上报的 JavaScript 库。

快速开始

安装

npm install buried-log --save

API

初始化

import BuriedLog from 'buried-log'

const baseURL = 'http://localhost:3000'
const config = {
  appName: 'buried_log_test',
}
const log = new BuriedLog(baseURL, config)

PV 埋点上报

log.sendPv('home', { shopId: '3799', productId: '9844' })

点击埋点上报

log.sendClick('login', { username: '18888888888' })

脚本引入

<script src="path/dist/buried-log.min.js"></script>
<script>
  const log = new window.BuriedLog('http://localhost:3100', {
    appName: 'buried_log_test',
    appVersion: '0.0.1',
  })

  log.sendPv('home', { shopId: '3799', productId: '9844' })
</script>
1.2.8

11 months ago

1.2.7

11 months ago

1.2.9

11 months ago

1.2.0

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago