convertiq

Client for ConvertIQ Lead Scoring Service

Usage no npm install needed!

<script type="module">
  import convertiq from 'https://cdn.skypack.dev/convertiq';
</script>

README

convertiq-node

Node library for interacting with the ConvertIQ lead scoring service.

Setup

$ npm install convertiq
var Client = require('convertiq').Client;
var convertiq = new Client({key: 'your-client-key'});
// OR
var convertiq = require('convertiq')('your-client-key');

Registering a new user

convertiq.register('user@example.com', function(err) {
    if (err) {
        console.log("Error Code: %d %s", err.code, err);
    }
});

Error Handling

The register function will return errors to the provided callback. Errors will be returned as a ConvertiqError object consisting of a code and a text description.

See the integration guide for more details.