@findify/analytics
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.0 • 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@3.0.0

    Version

    3.0.0

    License

    MIT

    Last publish

    Collaborators

    • findify