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.
pnpm install
pnpm devEnvironment variables
.env.local before sending production events.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.