Documentation
Eventra helps you track feature usage, product analytics and user behavior. Send events from frontend and backend in seconds.
Install
Install the Eventra SDK using your preferred package manager.
npm i @eventra_dev/eventra-sdk
pnpm add @eventra_dev/eventra-sdk
yarn add @eventra_dev/eventra-sdk
Quick start
Send your first event in less than a minute.
import { Eventra } from "@eventra_dev/eventra-sdk";
const tracker = new Eventra({
apiKey: "YOUR_PROJECT_API_KEY",
});
tracker.track("checkout.completed", {
userId: "user_123",
properties: {
plan: "pro",
price: 29
}
});Event Properties
Properties are optional and allow you to send additional event data. You can pass any JSON-compatible values.
tracker.track("feature.used", {
userId: "user_123",
properties: {
feature: "dashboard",
section: "analytics",
plan: "pro",
teamSize: 5
}
});Usage examples
Eventra SDK works in many environments including browser apps, React, Next.js, Node.js, NestJS, Express and more.
import { Eventra } from "@eventra_dev/eventra-sdk";
const tracker = new Eventra({
apiKey: "YOUR_PROJECT_API_KEY",
});
tracker.track("checkout.completed", {
userId: "user_123",
});Concepts
- Workspace — top level organization
- Project — isolated analytics environment
- Feature — tracked product capability
- Event — recorded feature usage