satismeter-loader

Asynchronously load satismeter with an npm module

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
satismeter-loader
201.1.06 years ago6 years agoMinified + gzip package size for satismeter-loader in KB

Readme

satismeter-loader
This is the SatisMeter snippet slightly modified to be a commonJS compatible module.
It's usable with module loaders like browserify or webpack.

Install

npm install satismeter-loader --save

Usage

var satismeter = require('satismeter-loader');

satismeter({
  writeKey: 'YOUR_WRITE_KEY',
  userId: '007',
  traits: {
    name: 'James Bond',
    licence: 'to kill',
    drink: 'Vesper Martini'
  }
});