# burieddot

> Buried point method based on vue

Latest version **1.0.7** (published 2020-07-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install burieddot
pnpm add burieddot
yarn add burieddot
bun add burieddot
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2020-07-13 |
| First published | 2020-05-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Tik |
| Maintainers | imtik |
| Keywords | buriedDot |

## Links

- npm: https://www.npmjs.com/package/burieddot
- Repository: https://github.com/imTik/npm-buriedDot
- Issues: https://github.com/imTik/buriedDot/issues
- npm.io page: https://npm.io/package/burieddot

## Recent versions

- 1.0.7 (latest) — 2020-07-13
- 1.0.6 — 2020-07-13
- 1.0.5 — 2020-05-13
- 1.0.4 — 2020-05-12
- 1.0.3 — 2020-05-11
- 1.0.2 — 2020-05-11
- 1.0.1 — 2020-05-09
- 1.0.0 — 2020-05-09

## README

## How to use buriedDot?
> This is a buried point plugin based on the vue framework

### npm install buriedDot

### use buriedDot
``` javascript
import BuriedDot from 'burieddot';
// 这里需要传入 router , callback, 60000 = 预设用户离开时间
BuriedDot(router, (mark, buriedData) => {
  console.log('触发埋点的标记: ', mark)
  console.log('获取到的埋点信息: ', buriedData);
  /**
   * 触发埋点的标记mark: router(路由埋点) / click(点击事件埋点) / leave(用户离开/无操作 埋点) / close(关闭页面埋点)
   * 
   * 埋点信息
   * buriedData: {
   *   deviceData: {...}  // 设备信息
   *   dotData:    {...}  // 埋点信息
   *   netData：   {...}  // 网络加载信息
   * }
  */
}, 60000);
```

### Element plus data-dot Click on element to trigger buried point callback
``` html
<!-- 元素加上data-dot 点击元素触发埋点callback -->
<button data-dot="这里放置埋点信息">这是一个按钮</button>
```

---
_Source: https://npm.io/package/burieddot · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
