Typescript wrapper for ChurnZero JScript API
npm install @revenuegrid/churnzerojstypescript
import { Client } from '@revenuegrid/churnzerojs';
const client = await Client.connect({
url: 'analytics.churnzero.net/churnzero.js', // or eu1analytics.churnzero.net/churnzero.js
apiKey: '{your key}',
accountId: '{account id}',
contactId: '{contact id}'
});
client.trackEvent('some custom event');
``