@tracemark/browser
v0.1.0
Published
Browser SDK for tracemark, self-hosted product analytics
Readme
@tracemark/browser
Lightweight browser SDK for tracemark, self-hosted product analytics.
npm install @tracemark/browserimport { tracemark } from '@tracemark/browser';
tracemark.init({ apiKey: 'fp_pub_…', host: 'https://analytics.example.com' });
tracemark.capture('signed_up', { plan: 'pro' });
tracemark.identify('user_123', { set: { email: '[email protected]' } });Page views, including SPA navigations, are captured automatically. Feature flags and error tracking are opt-in plugins from @tracemark/browser/flags and @tracemark/browser/errors.
Requires a running tracemark instance and its project key. ESM and script-tag builds are included.
Feature flags · Error tracking · Framework integrations
MIT licensed.
