Getting Started
Quick Start
Initialize the Node.js SDK and send your first event.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Initialize the Node.js SDK and send your first event.
import { Analytics } from '@zixflow/analytics-node'
const analytics = new Analytics({
writeKey: 'YOUR_WRITE_KEY'
})
analytics.identify({
userId: 'user@example.com',
traits: {
first_name: 'John',
last_name: 'Doe',
email: 'user@example.com'
}
})
analytics.track({
userId: 'user@example.com',
event: 'purchase_completed',
properties: {
product_id: '123',
price: 29.99,
currency: 'USD'
}
})
await analytics.closeAndFlush()