Skip to content

Repository files navigation

Statful Browser Plugin

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

Build StatusdevDependency Status

Table of Contents

Installation

npm install --save statful-browser-plugin

Quick Start

<scripttype="text/javascript"src="node_modules/statful-client-javascript/dist/statful.umd.min.js"></script><scripttype="text/javascript"src="node_modules/statful-browser-plugin/dist/statful-browser-plugin.umd.min.js"></script><script>
// 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');
</script>

Tags

These tags are only populated if available.

TagDescription
browserbrowser name
browser_versionbrowser version
device_typedevice type (desktop, tablet or mobile)
osos name
os_versionos 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

$ npm install

Tests

$ npm test

Authors

Mindera - Software Craft

License

Statful Javascript Client is available under the MIT license. See the LICENSE file for more information.

Releases

Packages

Used by

Contributors

Languages