Findify Analytics

Findify Analytics is built to track the user behavior on your website or mobile app, or in nodejs, which is required by our machine learning and personalization algorithms.

Integrate

🚧

Obtaining Findify API Key

Before you start, you need to get the Findify API Key in order to get access to the API. You need to follow the onboarding process or get the API key from your Merchant Dashboard.

Script Tag

In order to use Findify Analytics directly in the browser, you need to include the following script on the page:

<!-- Findify Analytics -->
<script src="https://cdn.jsdelivr.net/npm/@findify/analytics@latest/dist/findify-analytics.js"></script>

Findify Analytics will be available in the window object as window.FindifyAnalytics.

NPM

If you are using NPM, just install the library from our public NPM registry.

npm i --save @findify/analytics

Setup

To start tracking events on the page, you need to initialize the analytics object. There can be only one instance of Analytics, so every next initialization will override the previous one.

var API_KEY ='YOUR_API_KEY';
var Analytics = window.FindifyAnalytics;

// Initialize Analytics
var analyticsInstance = Analytics({ key: API_KEY });

// Start sending events
analyticsInstance.sendEvent('click-item', { rid: REQUEST_ID, id: ITEM_ID });