zedkit
@zedtech/zedkit-observability

Forward events to a browser analytics SDK

Map the `Tracker` port onto an SDK client (for example `posthog-js`).

alpha

At a glance

  • Who: Teams using a browser product-analytics SDK at the composition root.
  • What: Map the Tracker port onto an SDK client (for example posthog-js).
  • Use when: After consent allows analytics in the browser.
  • Avoid when: Server-side event pipelines — send from your API instead.

Install

pnpm add @zedtech/zedkit-observability

Latest: 0.1.0 (via changesets).

Example

Usage
import { createProductAnalyticsTracker } from "@zedtech/zedkit-observability/posthog";
const tracker = createProductAnalyticsTracker(client);
tracker.capture("page_view", { path: "/home" });

Wraps: posthog-js (peer)

On this page