Trackkit - Analytics without lock-in. Write once, switch with config

by
Open-source TypeScript SDK that sits between your app and your analytics provider. Consent-aware, SSR-safe, no remote scripts. Supports Umami, Plausible, and GA4 out of the box — switch between them by changing config, not rewriting tracking calls.

Add a comment

Replies

Best
Maker
📌
I built Trackkit after switching analytics providers twice in a couple of weeks. First from GA4 to Umami for privacy, then to Plausible for cost. Both times meant rewriting tracking calls and re-solving the same problems: consent timing, SPA navigation, SSR hydration. After the second switch, I was determined to never have to do it again. Trackkit gives you one API across providers. Call track() and pageview(), and if you switch from Umami to Plausible to GA4 later, you change the config instead of your app code. It also handles the stuff that doesn't change regardless of provider: consent management, queue-first event capture, SSR serialization and replay, and optional typed events for compile-time checking. It's a client library only, so no new services or infrastructure to add to your stack. Events go directly to whatever provider you configure. I'd love feedback on the integration experience, whether setup feels straightforward, and whether anything breaks or feels off in your particular stack. Issues and discussions are open on the repo.