cordova-plugin-aliyun-man

0.0.8 • Public • Published

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

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

aliyunman.initialize({
    'debug':false,
    'crashHandler':true,
    'autoPageTrack':false
},function(){
    console.log("Success");
},function(){
    console.log("Fail");
});

updateUserAccount

aliyunman.updateUserAccount({
    'userName':'Helix',
    'userId':'001'
},function(){
    console.log("Success");
},function(){
    console.log("Fail");
});

userRegister

aliyunman.userRegister({
    'userName':'Helix'
},function(){
    console.log("Success");
},function(){
    console.log("Fail");
});

pageHit

aliyunman.pageHit({
    'pageName':'page',
    'referPageName':'refer',
    'duration':1000 * 60 * 3
},function(){
    console.log("Success");
},function(){
    console.log("Fail");
});

customHit

aliyunman.customHit({
    'eventLabel':'eventLabel',
    'eventPage':'eventPage',
    'duration':1000 * 60 * 3
},function(){
    console.log("Success");
},function(){
    console.log("Fail");
});

More information

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.

Package Sidebar

Install

npm i cordova-plugin-aliyun-man

Weekly Downloads

0

Version

0.0.8

License

Apache 2.0 License

Last publish

Collaborators

  • helixhuang