Node.js SDK
Installation
npm install @listenlayer/nodeQuick Start
const { ListenLayer } = require('@listenlayer/node');
const ll = new ListenLayer({
apiKey: process.env.LISTENLAYER_API_KEY
});
// Track an event
await ll.track({
userId: 'user_123',
event: 'purchase',
properties: {
transaction_id: 'txn_456',
value: 99.99
}
});Methods
track()
identify()
page()
Batching
Error Handling
Last updated
Was this helpful?