1.1.6 • Published 26 days ago

refiner-js v1.1.6

Weekly downloads
1,354
License
MIT
Repository
github
Last release
26 days ago

Refiner.io NPM Client Wrapper

This wrapper provides a simple installation of the Refiner survey widget client through NPM.

This NPM package automatically injects the Refiner JavaScript client and exports an object that wraps all client methods. All method calls are queued end executed once the Refiner.io JavaScript client is fully loaded.

Installation

npm install refiner-js;

Usage

Quick installation

Copy & paste the code below into your applications and replace the static value ‘REFINER_PROJECT_ID’. You can find your project ID in the your Refiner dashboard under "Settings > Installation".

That's it! The Refiner JavaScript is now loaded and communicating with the Refiner API.

import Refiner from 'refiner-js';

Refiner('setProject', 'REFINER_PROJECT_ID');

Identify your users (recommended)

Refiner unleashes its full power when you identify your users and we highly recommend that you take the time to set up user identification.

Identifying your users allows you to better target specific accounts, sync survey responses with your user data, trigger user specific automations etc.

Identifying a user is easy with our Javascript client. All you need to do is to call a identifyUser method once our Javasript client was loaded.

Refiner('identifyUser', {
  id: 'USER-ID-ABC-123', // Each user needs an ID or email address
  email: 'jane@awesome.com', // Each user needs an ID or email address
  name: 'Jane Doe', // The full name of the user
});

Check out our documentation for more info.

1.1.6

26 days ago

1.1.5

26 days ago

1.1.4

3 months ago

1.1.1

8 months ago

1.1.3

8 months ago

1.0.3

2 years ago

1.0.2

3 years ago

1.0.1

4 years ago

1.0.0

4 years ago