Skip to main content
import { Analytics } from '@zixflow/analytics-node'

const analytics = new Analytics({
  writeKey: 'YOUR_WRITE_KEY',

  // API endpoint (defaults shown)
  host: 'https://cdp.zixflow.com',
  path: '/v1/batch',

  // Batching
  maxEventsInBatch: 15,
  flushInterval: 10000,

  // Retries and timeouts
  maxRetries: 3,
  httpRequestTimeout: 10000
})

Settings reference

KeyTypeDefaultDescription
writeKeystringRequired. Your Zixflow write key
hoststringhttps://cdp.zixflow.comAPI base URL
pathstring/v1/batchBatch ingest path
maxEventsInBatchnumber15Flush when this many events are queued
flushIntervalnumber10000Flush interval in milliseconds
maxRetriesnumber3Retry attempts for failed batches
httpRequestTimeoutnumber10000HTTP request timeout in milliseconds
There is no disable / enable setting on the Node client. Omit calls or gate them in your application code when you need to pause tracking.