# vue-statistics

> vue 统计指令

Latest version **1.1.5** (published 2018-08-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-statistics
pnpm add vue-statistics
yarn add vue-statistics
bun add vue-statistics
```

## 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.1.5 |
| Published | 2018-08-10 |
| First published | 2018-08-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 22.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ltinyho |
| Maintainers | ltinyho |
| Keywords | vue, statistics |

## Links

- npm: https://www.npmjs.com/package/vue-statistics
- Repository: https://github.com/ltinyho/vue-statistics
- Homepage: https://github.com/ltinyho/vue-statistics#readme
- Issues: https://github.com/ltinyho/vue-statistics/issues
- npm.io page: https://npm.io/package/vue-statistics

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.17.10

## Recent versions

- 1.1.5 (latest) — 2018-08-10
- 1.1.4 — 2018-08-10
- 1.1.3 — 2018-08-10
- 1.1.2 — 2018-08-10
- 1.1.1 — 2018-08-10
- 1.1.0 — 2018-08-10
- 1.0.1 — 2018-08-08
- 1.0.0 — 2018-08-08

## README

## 安装

```
yarn add  vue-statistics
```
or
```
npm install   vue-statistics
```

## 使用


```js
import VueStat from 'vue-statistics'

Vue.use(VueStat,{
track(){}})
```




```js
/*
 * 使用示例
 * v-stat="{'name':'首页-免费题库',data:{'名称':'免费题库'}}"
 * name 为事件名称
 * type 当需要上传页面事件时，设置为page，当页面初始化时上报，绑定到页面根元素  eg:
 * * v-stat="{'name':'首页-免费题库',type:'page',data:{ '名称':'免费题库'}}"
 * data 为事件属性
 * options.track 为自定义发送track事件,参数为data
 * */
```


```html
<!--  简单记录  -->
<div v-stat="'首页顶部-推荐'"></div>

<!-- data 属性自定义 -->
<div v-stat="{name:`课程学习-${courseInfo.title}`,type:'page',data:{'课程名称':courseInfo.title,'课程类型':'普通课程'}}"></div>
```

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