Skip to content

Releases: Swetrix/swetrix-js

v4.1.0

15 Jan 21:08

Choose a tag to compare

Changelog:

  • Add support for Google Ads gad_* and gclid URL parameters (tracking them as UTM tags)

v4.0.0

26 Dec 23:50
08d431b

Choose a tag to compare

Changelog:

  • Feature Flags & Experiments: Added support for fetching feature flags (getFeatureFlags, getFeatureFlag) and A/B test experiments (getExperiments, getExperiment).
  • Revenue Attribution: Added getProfileId() and getSessionId() helpers to easily retrieve IDs needed for connecting payments with user sessions.
  • Profile Tracking: Added optional profileId support to init(), track(), and pageview() to assign events to specific user profiles.
  • Heartbeat: Background heartbeat events now automatically include theprofileId if configured.

v3.7.2

08 Nov 23:40

Choose a tag to compare

Changelog:

  • Bump ES target (results in 25% build size decrease)
  • fix: trackErrors when invoking stop and 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

20 Jun 17:40

Choose a tag to compare

Changelog:

  • Update meta type for custom events, pageviews and error tracking

v3.7.0

23 May 20:55
f3860e3

Choose a tag to compare

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 trackError method as stackTrace. You can also pass meta object for some custom metadata (works exactly as meta object in track method for custom events).
  • Bumped dev dependencies.

v3.6.1

30 Mar 21:29

Choose a tag to compare

Changelog:

  • Added "type": "module" to package.json to properly identify the package as using ES modules, fixing "Cannot use import statement outside a module" errors
  • Updated dev dependencies to latest versions

v3.6.0

30 Mar 21:28

Choose a tag to compare

Please use v3.6.1 instead

v3.5.4

02 Jan 23:47

Choose a tag to compare

Changelog:

  • fix: Swetrix could not be imported correctly into Vite projects
  • misc: Update dependencies

v3.5.3

30 Nov 14:53

Choose a tag to compare

Changelog:

  • fix: trackError optional properties are not marked as optional in TypeScript (#18)
  • Removed unused dependencies and bumped dev dependencies.

v3.5.2

02 Nov 17:27

Choose a tag to compare

Changelog:

  • Fix broken CJS imports (Error [ERR_REQUIRE_ESM]: require() of ES Module ...) for the NPM version