# cordova-plugin-aliyun-man

> Aliyun MAN for cordova plugin

Latest version **0.0.8** (published 2016-06-19) · Apache 2.0 License license · 0 weekly downloads

## Install

```sh
npm install cordova-plugin-aliyun-man
pnpm add cordova-plugin-aliyun-man
yarn add cordova-plugin-aliyun-man
bun add cordova-plugin-aliyun-man
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2016-06-19 |
| First published | 2016-06-13 |
| Weekly downloads | 0 |
| License | Apache 2.0 License |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Helix Huang |
| Maintainers | helixhuang |
| Keywords | Aliyun, ecosystem:cordova, cordova-android |

## Links

- npm: https://www.npmjs.com/package/cordova-plugin-aliyun-man
- Repository: https://github.com/helixhuang/cordova-plugin-aliyun-man
- Homepage: https://github.com/helixhuang/cordova-plugin-aliyun-man#readme
- Issues: https://github.com/helixhuang/cordova-plugin-aliyun-man/issues
- npm.io page: https://npm.io/package/cordova-plugin-aliyun-man

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.8 (latest) — 2016-06-19
- 0.0.7 — 2016-06-18
- 0.0.6 — 2016-06-16
- 0.0.5 — 2016-06-15
- 0.0.4 — 2016-06-14
- 0.0.3 — 2016-06-13
- 0.0.2 — 2016-06-13
- 0.0.1 — 2016-06-13

## README

#  Cordova Plugin for Aliyun Mobile Analytics(MAN) (Not Official)
This plugin allows you to use Aliyun Mobile Analytics(MAN) on Android, iOS.

Read more from Aliyun site [here](https://help.aliyun.com/product/9005959_30019.html?spm=5176.750001.2.35.S4zt6o)

## Installation ##

Cordova

```cordova plugin add cordova-plugin-aliyun-man --variable APP_KEY=XXX --variable APP_SECRET=XXX```

## Methods ##

* [aliyunman.initialize] (#initialize)
* [aliyunman.updateUserAccount] (#updateUserAccount) 
* [aliyunman.userRegister] (#userRegister) 
* [aliyunman.pageHit] (#pageHit)
* [aliyunman.customHit] (#customHit)

### initialize ###

```javascript
aliyunman.initialize({
    'debug':false,
    'crashHandler':true,
    'autoPageTrack':false
},function(){
    console.log("Success");
},function(){
    console.log("Fail");
});
```

### updateUserAccount ###

```javascript
aliyunman.updateUserAccount({
    'userName':'Helix',
    'userId':'001'
},function(){
    console.log("Success");
},function(){
    console.log("Fail");
});
```

### userRegister ###

```javascript
aliyunman.userRegister({
    'userName':'Helix'
},function(){
    console.log("Success");
},function(){
    console.log("Fail");
});
```

### pageHit ###

```javascript
aliyunman.pageHit({
    'pageName':'page',
    'referPageName':'refer',
    'duration':1000 * 60 * 3
},function(){
    console.log("Success");
},function(){
    console.log("Fail");
});
```

### customHit ###

```javascript
aliyunman.customHit({
    'eventLabel':'eventLabel',
    'eventPage':'eventPage',
    'duration':1000 * 60 * 3
},function(){
    console.log("Success");
},function(){
    console.log("Fail");
});
```


## More information ##
* Author: Helix Huang
* Website: http://www.cecoco.com/ (Under construction)
* Email: <huangjianping@gmail.com>
* Facebook: https://www.facebook.com/helix.huang
* LinkedIn: https://www.linkedin.com/in/helixhuang

## License ##
The MIT License (MIT)

Copyright (c) 2016 Rand Dusing and contributors.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

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