This repository was archived by the owner on Feb 15, 2026. It is now read-only.
Releases: Swetrix/swetrix-js
Releases · Swetrix/swetrix-js
v4.1.0
v4.0.0
Changelog:
- Feature Flags & Experiments: Added support for fetching feature flags (
getFeatureFlags,getFeatureFlag) and A/B test experiments (getExperiments,getExperiment). - Revenue Attribution: Added
getProfileId()andgetSessionId()helpers to easily retrieve IDs needed for connecting payments with user sessions. - Profile Tracking: Added optional profileId support to
init(),track(), andpageview()to assign events to specific user profiles. - Heartbeat: Background heartbeat events now automatically include the
profileIdif configured.
v3.7.2
Changelog:
- Bump ES target (results in 25% build size decrease)
- fix:
trackErrorswhen invokingstopand calling this function again would not work - fix: page (pg) parameter may not always be set for custom event (
track) function if you use it without sending any pageview events
v3.7.1
v3.7.0
Changelog:
- Added support for error stack traces and custom metadata. Stack traces are automatically tracked for all errors, and you can also pass them manually into the
trackErrormethod asstackTrace. You can also passmetaobject for some custom metadata (works exactly asmetaobject intrackmethod for custom events). - Bumped dev dependencies.