项目作者: yuki-torii

项目描述 :
⛩ Yuki Gta
高级语言: JavaScript
项目地址: git://github.com/yuki-torii/yuki-gta.git
创建时间: 2017-02-10T10:14:26Z
项目社区:https://github.com/yuki-torii/yuki-gta

开源协议:

下载


yuki-gta

⛩ yuki-gta

Travis
GitHub license
Standard - JavaScript Style Guide

Install

  1. $ npm i --save yuki-gta
  2. # or
  3. $ yarn add yuki-gta

Usage

  1. import Gta from 'yuki-gta'
  2. const gta = new Gta({
  3. google: 'UA-********-**',
  4. baidu: '*********'
  5. })
  6. gta.event({
  7. category: 'page',
  8. action: 'action',
  9. label: 'label',
  10. value: 1
  11. })
  12. gta.pageview('page')

API Documentations

Development

  1. # install dependencies
  2. $ npm i
  3. # or
  4. $ yarn
  5. # dev
  6. $ npm run dev
  7. # test
  8. $ npm run test
  9. # lint
  10. $ npm run lint

Contributing

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am ‘Add some feature’
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request 🍻

Author

yuki-gta © Limichange, Released under the MIT License.