txlemetry-js-lite
v4.9.1
Published
Lightweight Txlemetry browser SDK
Readme
Txlemetry JavaScript Lite
txlemetry-js-lite is a compact Txlemetry browser SDK for analytics and feature flags. Use it when package size matters, such as browser extensions. For the full browser SDK, use @txlemetry/js.
Install
npm install txlemetry-js-liteUse
import Txlemetry from 'txlemetry-js-lite'
const txlemetry = new Txlemetry('your-project-api-key', {
host: 'https://app.txlemetry.com',
})
txlemetry.capture('checkout_started')
txlemetry.identify('user-123', { email: '[email protected]' })
if (txlemetry.isFeatureEnabled('new-checkout')) {
// Show the new experience.
}The Lite SDK supports analytics, identity, groups, persistence, and feature flags. It omits the larger optional browser features included in @txlemetry/js.
