Quick start

Install the SDK and send your first event in minutes.

Clone the repo, install dependencies, and run the dev server. The dashboard lives at /dashboard.

terminal
pnpm install
pnpm dev

Environment variables

Add your website ID and API host to .env.local before sending production events.
typescript
import { Analytics } from "@analytics/sdk";

Analytics.init({
  websiteId: process.env.ANALYTICS_WEBSITE_ID!,
  host: process.env.ANALYTICS_API_HOST,
});

Open the dashboard to confirm events are flowing.