Unofficial Node.js client for Klaviyo's HTTP API (v1.0.8, last updated 2020). Designed for server-side tracking of customer events and profile identification. Uses public token for track/identify and private API key for metrics/lists. No TypeScript types; requires Node 6+. Minimal abstraction over Klaviyo's REST API. Not affiliated with Klaviyo.
npm install klaviyo-nodeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes client with public token from env, tracks a purchase event with profile properties, and identifies a profile with custom properties.
Ensure you use your Klaviyo Public API Key (found in Klaviyo > Settings > API Keys) for track/identify calls.
Migrate to the official Klaviyo SDK (klaviyo) which uses v2 API.
No fix needed; but consider switching to official SDK.
Use: const Klaviyo = require('klaviyo-node'); // CJS
or
import Klaviyo from 'klaviyo-node'; // ESMPass your Klaviyo public token as first argument: new Klaviyo('pk_...');Use the public API key (starts with 'pk_') for client instantiation when calling track or identify.
No dependency data recorded yet.