Documentation
SDK
The core library (@telemetry-tracker/core) exposes init, event and error helpers, screen/session tracking, and identity. Platform packages wrap the same config for Next.js, NestJS, Nuxt, Vue, Node, and React Native.
init(config)
Required: ingestUrl (your API base URL), app (a string that groups data in the dashboard). Optional: platform, environment, release, batchInterval, batchSize, piiScrub, webVitals.
Set piiScrub: true or pass { denyKeys: ["nationalId"] } to redact common PII in event properties and error payloads before send. Client scrubbing is optional and does not replace server-side ingest scrubbing. See the PII scrubbing guide.
import { init, trackEvent, trackError, screen, identify } from "@telemetry-tracker/core";
init({
ingestUrl: "https://your-api.example.com",
app: "my-app",
apiKey: "tt_live_<publicId>_<secret>",
});
trackEvent("button_click", { id: "submit" });
trackError(new Error("Something broke"), { page: "/checkout" });
screen("/home");
identify("user-123");Real-user Web Vitals
React and other browser apps using @telemetry-tracker/core collect LCP, INP, CLS and TTFB by default after init(). Next.js uses the same capture through TelemetryProvider. The SDK includes its Web Vitals dependency; you do not need to install another package or register metric callbacks. FCP is not collected. Capture requires browser APIs and does not apply to Node.js or native React Native apps.
To disable capture, add webVitals: false to your existing init() config, or to the Next.js TelemetryProvider config. Omit the option or set it to true to enable it at initialization.
init({
ingestUrl: "https://api.telemetry-tracker.com",
app: "my-app",
apiKey: "tt_live_<publicId>_<secret>",
webVitals: false,
});Open Performance in the dashboard for p75 values, Good / Needs improvement / Poor ratings and trends. The Slow pages table groups LCP and CLS by page path and links to the underlying events. Overviewshows a scoped snapshot. Select the relevant project, time range, app and environment.
The SDK sends each reported metric as a $web_vital event through the normal event pipeline, without a configurable sampling rate. Each metric event counts as one ingest unit toward the hosted plan cap, alongside other telemetry. Availability depends on browser support and the visit: INP needs interaction, and some metrics are finalized when the page becomes hidden. These are page-lifecycle measurements; client route changes do not start a fresh set of Web Vitals measurements. The path is read from window.location.pathname when a metric is reported.
Metric properties contain the value, rating, page path, metric ID, navigation type and, when available, connection type. The path excludes the query string and hash, but can still contain personal identifiers. Events also carry the SDK’s normal anonymous ID, session ID and user ID when set. Web Vitals capture does not record session replay. Review your paths and identity configuration; optional client piiScruband default server scrubbing are best-effort protections, not a guarantee that all personal data is removed.
Identity and anonymous ID
The SDK generates a stable anonymous device id on first init() and sends it (and the SDK version) with every payload. When you call identify(userId), the same anonymous id is still sent so the backend can link pre-login activity to the user. In the dashboard, Identity shows the user id when set, otherwise the anonymous id.
App name
The app value identifies your application in filters and lists. You do not register apps in the UI—once you send at least one event or error with a name, it appears everywhere that supports app filtering.
Next steps
Follow a platform guide for install steps, or open the dashboard docs to learn how data appears in the UI.