3.9.0 • Published 12 months ago
@leather.io/analytics v3.9.0
@leather/analytics
This package provides a client for sending analytics events to various analytics services. Currently, it supports Segment but could be extended to support other services in the future.
Installation
pnpm install @leather/analyticsUsage
Before making any analytics calls, you must configure the analytics client with your write key.
import { AnalyticsClientType, configureAnalyticsClient } from '@leather.io/analytics';
export const analytics: AnalyticsClientType = configureAnalyticsClient({
client: segmentClient,
defaultProperties: {
platform: 'mobile',
},
});Now you can make analytics calls with your configured client.
import { analytics } from 'path/to/analytics';
analytics.track('My Event', {
property: 'value',
});Development
pnpm buildor
pnpm build:watch3.9.0
12 months ago
2.0.1
2 years ago
2.0.0
2 years ago
3.4.0
1 year ago
3.3.1
1 year ago
3.2.2
1 year ago
3.1.3
1 year ago
3.0.4
1 year ago
3.3.0
1 year ago
3.2.1
1 year ago
3.1.2
1 year ago
3.0.3
1 year ago
3.2.0
1 year ago
3.1.1
1 year ago
3.0.2
1 year ago
3.1.0
1 year ago
3.0.1
1 year ago
3.8.0
12 months ago
3.7.1
12 months ago
3.6.2
12 months ago
3.7.0
12 months ago
3.6.1
12 months ago
3.6.0
12 months ago
3.5.1
1 year ago
3.4.2
1 year ago
3.3.3
1 year ago
3.2.4
1 year ago
3.5.0
1 year ago
3.4.1
1 year ago
3.3.2
1 year ago
3.2.3
1 year ago
3.0.0
1 year ago
1.0.0
2 years ago
0.0.1
2 years ago