An open API service indexing awesome lists of open source software.

https://github.com/lsongdev/analytics.js

analytics.js
https://github.com/lsongdev/analytics.js

analytics analytics-tracking

Last synced: about 2 months ago
JSON representation

analytics.js

Awesome Lists containing this project

README

          

## analytics.js [![analytics.js](https://img.shields.io/npm/v/analytics.js.svg)](https://npmjs.org/analytics.js)

> analytics sdk

### Installation

```bash
$ npm install https://github.com/song940/analytics.js.git
```

### Example

```html

trackClick

const ga = Analytics();
ga.trackView();
document.addEventListener('click', e => {
e.preventDefault();
ga.trackClick(e);
});

```

### Contributing
- Fork this Repo first
- Clone your Repo
- Install dependencies by `$ npm install`
- Checkout a feature branch
- Feel free to add your features
- Make sure your features are fully tested
- Publish your local branch, Open a pull request
- Enjoy hacking <3

### MIT

This work is licensed under the [MIT license](./LICENSE).

---