Quickstart

Install the SDK, identify a user, track an event, and watch it arrive in Live.

  1. Create a project in the dashboard and copy its write key from Project → API keys.
  2. Install the SDK for your platform.
  3. Initialise once, identify the signed-in user, and track an event.
  4. Open Analytics → Live and watch the event arrive with its resolved identity.
terminal
npm install @edverix/analytics-web
src/analytics.ts
import { AnalyticsWeb } from "@edverix/analytics-web";

export const analytics = new AnalyticsWeb({
  apiKey: "edverix_live_XXXXXXXXXXXXXXXX",
  endpoint: "https://api.edverix.com",
});

await analytics.init();
analytics.identify("u_5f2a", { plan: "pro", country: "IN" });
analytics.track("checkout_started", { cart_total: 2490, items: 3 });

Write keys are safe to embed in client apps: they can only write events. Management calls made with a write key are refused.