0.2.4 • Published 5 years ago

@haifeng-fe/ubt v0.2.4

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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:

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

LICENSE

MIT

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.1.0

5 years ago