Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/statful/statful-browser-plugin

Statful Browser Plugin
https://github.com/statful/statful-browser-plugin

browser gather-metrics javascript metrics plugin statful

Last synced: 1 day ago
JSON representation

Statful Browser Plugin

Awesome Lists containing this project

README

        

# Statful Browser Plugin

Statful plugin to capture browser information and add it on your metrics.

[![Build Status](https://travis-ci.org/statful/statful-browser-plugin.svg?branch=master)](https://travis-ci.org/statful/statful-browser-plugin)
[![devDependency Status](https://david-dm.org/statful/statful-browser-plugin/dev-status.svg)](https://david-dm.org/statful/statful-browser-plugin#info=devDependencies)

## Table of Contents

* [Installation](#installation)
* [Quick Start](#quick-start)
* [Tags](#tags)
* [Contribute](#contribute)
* [Authors](#authors)
* [License](#license)

## Installation

```
npm install --save statful-browser-plugin
```

## Quick Start

```javascript


// Init statful
statful.initialize({
dryrun: false,
debug: false,
app: 'exampleApp',
flushInterval: 5000
});

// Use Statful Browser Plugin
statful.use(new StatfulBrowserPlugin());

// Send a metric
statful.counter('page_load');

```

## Tags
These tags are only populated if available.

| Tag | Description |
|:---|:---|
| browser | browser name |
| browser_version | browser version |
| device_type | device type (desktop, tablet or mobile)|
| os | os name|
| os_version | os version|

## Contribute

Follow the standard *Fork and Pull Request* workflow and:

* Add tests for new feats
* Make sure the test suite passes
* Update or add documentation accordingly

### Installation

```bash
$ npm install
```

### Tests

```bash
$ npm test
```

## Authors

[Mindera - Software Craft](https://github.com/Mindera)

## License

Statful Javascript Client is available under the MIT license. See the [LICENSE](https://raw.githubusercontent.com/statful/statful-browser-plugin/master/LICENSE) file for more information.