Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

findify-analytics

2.0.14 • Public • Published

Getting started

Dependencies

sudo apt-get install libcairo2-dev libjpeg-dev libgif-dev

or on Mac OS with Homebrew:

brew install cairo

Installation

npm install findify-analytics --save

or

yarn add findify-analytics

Alternatively, you can use UMD builds, by requiring them to the page using <script> tag:

https://findify-assets-2bveeb6u8ag.netdna-ssl.com/analytics-js/findify-analytics.1.1.2.min.js

or using unminified version:

https://findify-assets-2bveeb6u8ag.netdna-ssl.com/analytics-js/findify-analytics.1.1.2.js

Usage example

var FindifyAnalytics = require('findify-analytics');
 
// First, you need to initialize library:
var client = FindifyAnalytics.init({
  key: 'your_api_key',
});
 
// After library initialized, we can send event requests to server with `client` instance. Let's perform click-suggestion request:
client.sendEvent('click-suggestion', {
  rid: 'request_id',
  suggestion: 'Black t-shirt'
});
 
// Also, you can get `user` instance, which can be used further in `findify-sdk` library:
var user = client.getUser();

Documentation

License

MIT

Keywords

none

install

npm i findify-analytics

Downloadsweekly downloads

337

version

2.0.14

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability