@haifeng-fe/ubt
TypeScript icon, indicating that this package has built-in type declarations

0.2.4 • Public • Published

via-ubt

more docs

How to use

With NPM

  • install: yarn add @haifeng-fe/ubt.

  • import import UBT from '@haifeng-fe/ubt'.

With UMD

  • import by script tag: <script src="//cdn.jsdelivr.net/npm/@haifeng-fe/ubt/dist/index.js></script>

  • use by window: const UBT = window.UBT

Start

  1. create project: const project = new UBT('projectID')

  2. create scene branch: const UBTScene = project.createScene('scene branch id')

  3. send basic data: UBTScene.sendBasicAnalytics()

  4. send custom data:

```js
UBTScene.sendEvent({
  id: 'eventID',
  message: 'hello',
  params: {
  },
})
```

LICENSE

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @haifeng-fe/ubt

Weekly Downloads

1

Version

0.2.4

License

MIT

Unpacked Size

14.1 kB

Total Files

18

Last publish

Collaborators

  • lishen
  • echo_unix