0.0.4 • Published 2 years ago

@elba-security/cdp-analytics-node v0.0.4

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Customer.io Data Pipelines analytics client for Node.js.

Installation

npm install @customerio/cdp-analytics-node

Usage

import { Analytics } from '@customerio/cdp-analytics-node'

// instantiation
const analytics = new Analytics({ writeKey: '<MY_WRITE_KEY>' });

analytics.identify({
  userId: '4'
});

Other Regions

If you're using a different data center such as our EU region, you can specify an alternate endpoint:

import { Analytics } from '@customerio/cdp-analytics-node'

// instantiation
const analytics = new Analytics({
  host: 'https://cdp-eu.customer.io',
  writeKey: '<MY_WRITE_KEY>'
});

analytics.identify({
  userId: '4'
});

Documentation

The links below contain more detailed documentation on how to use this library:

0.0.4

2 years ago

0.0.3-alpha.0

2 years ago

0.0.3

2 years ago