3.9.0 • Published 7 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
7 months ago
2.0.1
1 year ago
2.0.0
1 year ago
3.4.0
10 months ago
3.3.1
10 months ago
3.2.2
10 months ago
3.1.3
11 months ago
3.0.4
1 year ago
3.3.0
10 months ago
3.2.1
10 months ago
3.1.2
12 months ago
3.0.3
1 year ago
3.2.0
11 months ago
3.1.1
12 months ago
3.0.2
1 year ago
3.1.0
1 year ago
3.0.1
1 year ago
3.8.0
7 months ago
3.7.1
7 months ago
3.6.2
7 months ago
3.7.0
7 months ago
3.6.1
7 months ago
3.6.0
7 months ago
3.5.1
7 months ago
3.4.2
9 months ago
3.3.3
10 months ago
3.2.4
10 months ago
3.5.0
8 months ago
3.4.1
9 months ago
3.3.2
10 months ago
3.2.3
10 months ago
3.0.0
1 year ago
1.0.0
1 year ago
0.0.1
1 year ago