Customer.io Data Pipelines analytics client for Node.js.
npm install @customerio/cdp-analytics-nodeCustomer.io Data Pipelines analytics client for Node.js.
```
npm install @customerio/cdp-analytics-node
`ts
import { Analytics } from '@customerio/cdp-analytics-node'
// instantiation
const analytics = new Analytics({ writeKey: '
analytics.identify({
userId: '4'
});
`
If you're using a different data center such as our EU region, you can specify an alternate endpoint:
`ts
import { Analytics } from '@customerio/cdp-analytics-node'
// instantiation
const analytics = new Analytics({
host: 'https://cdp-eu.customer.io',
writeKey: '
});
analytics.identify({
userId: '4'
});
``
The links below contain more detailed documentation on how to use this library:
* Documentation
* Specs
* npm